フィルターのクリア

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

2 ビュー (過去 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 件のコメント
Viswanath Hariharan
Viswanath Hariharan 2017 年 11 月 27 日
I'm so sorry. I figured it out after submitting the question and then forgot to delete the question. Thank you for your help.
KL
KL 2017 年 11 月 27 日
No worries, it was just a sugestion.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by