hcomputeMTMValues, Expression or statement is incomplete or incorrect.
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
Peter Meglis
2018-8-6
编辑:Walter Roberson
2018-12-17
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.
回答(1 个)
Sharon He
2018-12-17
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Functions in Microsoft Excel 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!