hello guys i am quiet new in matlab i have problem in my code
%% Define Parameters
diary on
disp('Analysis on PD Data')
diary('c:\M_Figures\sample\CommandWindow')
when i run the code the program say got error in diary i dont why,plz help my guys,thanx i took this code from my friend.

댓글 수: 2

Stephen23
Stephen23 2016년 7월 8일
@badr omar: please show us the complete error message. This means all of the red text.
badr omar
badr omar 2016년 7월 10일
these are the massages
Error using diary c:\M_Figures\sample\CommandWindow: Can't open file.
Error in Q1condition1 (line 15)
diary('c:\M_Figures\sample\CommandWindow')
i tries many things but still not working

댓글을 달려면 로그인하십시오.

답변 (1개)

Star Strider
Star Strider 2016년 7월 8일

0 개 추천

Rather than writing to the Command Window and saving the diary, it would be easier if you saved the results of your computations from within your script. There are several options, including save (to save it to a .mat file, the easiest), dlmwrite (to write it to an ASCII-delimited text file), writetable if your data are in a table, and others.

카테고리

도움말 센터File Exchange에서 Entering Commands에 대해 자세히 알아보기

태그

질문:

2016년 7월 8일

댓글:

2016년 7월 10일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by