hcomputeMTMValues, Expression or statement is incomplete or incorrect.
Ältere Kommentare anzeigen
I try to use the function "hcomputeMTMValues" on my matlab code but it doesn't work!I'm getting the following error when I try to run the function: "Expression or statement is incomplete or incorrect." Please, help me.
3 Kommentare
Chris Perkins
am 8 Jan. 2018
Hi Flavia,
Please post the actual code that is causing this error. From the error message, it sounds like there may be a syntax error in your code.
FLAVIA VITRANO
am 10 Jan. 2018
Bearbeitet: Walter Roberson
am 17 Dez. 2018
Peter Meglis
am 6 Aug. 2018
Bearbeitet: Walter Roberson
am 17 Dez. 2018
Flavia,
I tried reproducing the issue but was unable to do it due to some functions not being recognized. Is there more code to this?
Have you tried making sure the function is on your path? https://www.mathworks.com/matlabcentral/answers/87989-where-can-i-find-the-code-for-the-function-hcomputemtmvalues-in-http-www-mathworks-in-help-finin
You can use
which -all hcomputeMTMValues
to find where the function is located.
Antworten (1)
Sharon He
am 17 Dez. 2018
Hi Flavia,
As Peter has mentioned, type the following code in the Matlab command line:
which -all hcomputeMTMValues
For me, I got
E:\bat\archive\R2018a\perfect\matlab\toolbox\fininst\fininstdemos\hcomputeMTMValues.m
Then add it to the path by typing:
addpath('E:\bat\archive\R2018a\perfect\matlab\toolbox\fininst\fininstdemos\hcomputeMTMValues.m')
Thanks,
Sharon
Kategorien
Mehr zu MATLAB Functions in Microsoft Excel 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!