hcomputeMTMValues, Expression or statement is incomplete or incorrect.
    조회 수: 5 (최근 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!