Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Please if someone can teach me how to do it then I shall be grateful.How to retain userHistory in docBlock of simulink without overwriting the old information?

1 回表示 (過去 30 日間)
Rizwana
Rizwana 2016 年 7 月 5 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
clear all;
clc;
bdclose all;
sys = 'test';
load_system(sys);
load_system('simulink');
open_system(sys);
k = get_param(gcb,'UserData');
name = getenv('USERNAME');
[Date, Time]= timeAndDate();
new_info =char(name,Date,Time);
k.content = cellstr(new_info);
for i = 1:length(k.content)
set_param(gcb,'UserData',k.content{i});
% save_system('DocBlock')
% set_param(gcb, 'UserDataPersistent', 'on');
end
I am unable to save over all information. Like it is saving the last information and overwriting my old information

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by