san1988san:
完全照抄你的例子,不知道为什么会报错:
原因: The block 'test1/MATLAB Function' is reading from element 1 of the data store 'test1/Data Store Memory' before any blocks have written to this memory at time 0.0. For performance reasons, occurrences of this diagnostic for this memory at other simulation time steps will be suppressed.。用的是R2021b