when i use matlabFunction command matlab takes a long time to run it and then hangs?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Najmeh Eskandari
am 7 Nov. 2018
Kommentiert: Walter Roberson
am 7 Nov. 2018
hi. I run the m file which is attached without 198 line(197 and 199 lines are in code) and matlab works correctly but when I add that line it takes a long time to run and Eventually the program will hang .197 and 199 lines are same as 198 and I don't know what is the problem?(C matrix is created correctly but Cfunc.m is not created)
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 7 Nov. 2018
When you request saving to a file, the default is that optimization is turned on. Optimization can take a long long time and run out of memory.
4 Kommentare
Walter Roberson
am 7 Nov. 2018
Anyhow,l the matlabFunction line I show is what you need. You might want to change the order of the variables. I do recommend using the 'vars' option, as otherwise the variables will end up in an order that probably does not make intuitive sense, making it more likely that you would encounter errors in passing variables in.
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!