How to save into a particular variable space in .mat file?

조회 수: 3(최근 30일)
Viswanath Hariharan
Viswanath Hariharan 2017년 11월 27일
댓글: KL 2017년 11월 27일
Say A = cell(100,1) existing as a variable in the .mat file. I want to add 100 more elements to A from my main program i.e. the variable space A(101:200) in the .mat file. How do I accomplish this?

채택된 답변

KL
KL 2017년 11월 27일
The same command which I just gave you for your other question. That's why you should read the link!
A = rand(100,1);
save('dummy.mat','A')
mobj = matfile('dummy.mat','Writable', true);
mobj.A = [mobj.A; rand(100,1)];
  댓글 수: 2
KL
KL 2017년 11월 27일
No worries, it was just a sugestion.

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

추가 답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by