Executable Generated not Working when .m File is
Ältere Kommentare anzeigen
Hello,
I have a matlab script that I am using that works when using the command line like so.
I created an executable out of said file and inputted my parameters like this

The parameters are all the same and I made sure the runtime compiler I have installed is the same as the version I am using to run the script. How come this error is encountered from the executable? I apologize for including the error message in a picture I just had to include the input parameters as well.
Best,
Gabriel
1 Kommentar
Gabriel
am 24 Mär. 2025
Antworten (2)
Steven Lord
am 24 Mär. 2025
1 Stimme
See the section titled "Handle Input Arguments in MATLAB" on this documentation page. Those inputs are being passed into the application as text data not numbers by default.
1 Kommentar
Walter Roberson
am 25 Mär. 2025
Oh, good point !!
Walter Roberson
am 24 Mär. 2025
0 Stimmen
You have coded an algebraic matrix multiplication, the * operator.
Unless you are deliberately doing linear algebra work, chances are high that instead you wanted the element-by-element multiplication operator, .* (period asterisk together)
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!