I have a simulation model which i need to run for many testcases. I have got to the point where i can run it for all the test cases but have difficulty saving the outputs.
the script goes something like this for sheet_index = 1:length(TestCases) signalbuilder('Plant_TestHarness/TestVectors','ACTIVEGROUP',sheet_index); signalbuilder('Plant_TestHarness/ExpectedOutputs','ACTIVEGROUP',sheet_index); simout=sim('Plant_TestHarness',EndTime(sheet_index)); Outputs_final{sheet_index,:}=simout; clear TestOutputs end
but the Outputs_final comes as a null structure
2 Comments
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/43803#comment_90054
When you run this you should have the last simout remaining. Does it have data?
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/43803#comment_91141
Thanks Ryan
I got the solution
cheers