Errors when running matlab program
Ältere Kommentare anzeigen
Hi
I am trying to run a program named TR1 version 4
I have left the input and output paths as is and am using the data provided
When I run the program, it asks for a threshold and I enter 0.001
Here is the ouput:-
*********************************************************************************************************
Please input the threshold (positive number): 0.001
Destination =
'C:\AnalysisResult\USDJPYmin(2016.07-2016.08)\'
Destination =
'C:\AnalysisResult\USDJPYmin(2016.07-2016.08)\'
Warning: Directory already exists.
> In TR1_4_Main (line 27)
Warning: The JavaFrame figure property will be removed in a future release. For more information, see Recommendations for Java and
ActiveX Users on mathworks.com.
> In TR1_4_Profile (line 115)
In TR1_4_Main (line 29)
Error using legend (line 279)
Invalid argument. Type 'help legend' for more information.
Error in TR1_4_Profile (line 117)
legend(Filename, 'Directional Change Events', 'Overshoot Events',2);
Error in TR1_4_Main (line 29)
[CPA DCA DCCstar time prices Filepath2] = TR1_4_Profile(name,Destination,Data,threshold); % for DC profile
********************************************************************************************************
I need help in understanding the various errors
Thank you
Bob M
Akzeptierte Antwort
Weitere Antworten (3)
Bob Matthews
am 30 Okt. 2021
Bearbeitet: Bob Matthews
am 30 Okt. 2021
0 Stimmen
1 Kommentar
Image Analyst
am 30 Okt. 2021
Set a break point on that "for" line. Then look in the workspace at your variables. Do you see CPA listed? I think not. You need to define it.
Bob Matthews
am 30 Okt. 2021
0 Stimmen
Bob Matthews
am 30 Okt. 2021
Bearbeitet: Bob Matthews
am 30 Okt. 2021
0 Stimmen
1 Kommentar
Image Analyst
am 30 Okt. 2021
Bearbeitet: Image Analyst
am 30 Okt. 2021
Once again you're using a variable without ever defining it. What do you think Filepath2 is? Evidently it was never defined, or at least never defined in a place that is "in scope" when you try to use it.
Kategorien
Mehr zu Function Creation 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!