I ran my .m program and saved the result in .mat file like
save(['C:\Users\Public\Documents\Matlab_code\MATLAB\two_variables.mat'], 'K_value', 'A_K', 'B_K', 'sum_pii_bye_Ak', 'root1', 'length_from_sumpiibyeAk_to_meu','pi_i2','v2_bar');
Again, when i ran the same .m program and tried to save the result in .mat file, then the result of .m file are not getting stored in the next row of the .mat file. Instead , overlapping is done with the previously stored values in the .mat file.
When i run the .m program again & again, the results should be stored in the .mat file in the row after the previously stored row. How to do this? please. Can anyone help me?
-- kalpana

 채택된 답변

Walter Roberson
Walter Roberson 2014년 1월 24일

0 개 추천

You cannot do that using save(). To do that you need to use matfile

댓글 수: 5

kalpana
kalpana 2014년 1월 24일
Sir, I did "help matfile" & "lookfor matfile" in the matlb command window. But, command window says that "matfile not found.".
Is there any other option sir?
--kalpana
Walter Roberson
Walter Roberson 2014년 1월 24일
Which MATLAB version are you using?
kalpana
kalpana 2014년 1월 24일
version 7.9.0.529 (R2009b)
kalpana
kalpana 2014년 1월 24일
I am doing it with csvread & csvwrite commands. Anyway, thank you for your suggestions. -kalpana
Walter Roberson
Walter Roberson 2014년 1월 24일
R2009b is too old to have matfile.

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

추가 답변 (0개)

카테고리

질문:

2014년 1월 24일

댓글:

2014년 1월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by