Run with command line but not with simulink
Show older comments
Hi,
I have a function that works well in command line. I integrate it into a simulink and it's not working.
Errors are like :
- Mixed field types in structure arrays are not supported
- FIND requires variable sizing
Any recommendation ?
NB:I am using Matlab 2017b
8 Comments
Bob Thompson
on 11 Feb 2019
Edited: Bob Thompson
on 11 Feb 2019
What is the command that you are trying to use? Please include more information about your code.
Mohamad TOUT
on 12 Feb 2019
Edited: Mohamad TOUT
on 12 Feb 2019
Jan
on 12 Feb 2019
What is a "structure file"? How do you "add a function"?
Maybe the problem gets clear, if you post a minimal working example, which reproduces the problem.
Mohamad TOUT
on 12 Feb 2019
Mohamad TOUT
on 13 Feb 2019
I am just guessing based on the text of the error, but it seems that Simulink has a problem loading the file 'test1.mat' because there are different field types.
it also says "use the command 'whos -file test1,mat' to view the variables in the MAT file'
Did you do this? What is the result?
Mohamad TOUT
on 13 Feb 2019
Mohamad TOUT
on 14 Feb 2019
Answers (0)
Categories
Find more on Naming Conventions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!