Savig a workspace file..

조회 수: 1 (최근 30일)
FG
FG 2020년 3월 3일
댓글: FG 2020년 3월 3일
Hi all.. I have a multiple input scope data containing voltages, currents and powers saved in the workspace.
When I try to plot or save it ((Error using plot Not enough input arguments.)) and
((Error using save Must be a string scalar or character vector.)) warnings are shown.
How can I save the data and plot in as a figure ? Thanks..
  댓글 수: 4
M
M 2020년 3월 3일
I don't have any code..
What causes these error messages ?
How do you try to plot and save your data ?
FG
FG 2020년 3월 3일
Dear M.. In simulink I have scope screens of voltages and currents. I want to save the scope view as an M file but I can't..

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

채택된 답변

Jesus Sanchez
Jesus Sanchez 2020년 3월 3일
Without the code, we cannot do much. However, for the save I think that you are not wrting the variable name as a string. See Save, load and delete variables from workspace. As an example, if I want to save the variable result in a workspace named storedResult, the following code gives an error:
result = 1;
save('storedResult.mat',result); % ERROR!
The correct form is to write result in save as a string variable:
result = 1;
save('storedResult.mat','result'); % This works
Regarding your plot problem, I would check how to plot variables in matlab plot, or include a piece of your code so we can see what is failing
  댓글 수: 4
FG
FG 2020년 3월 3일
No, you are not rude.. I've never studied MATLAB before. Just trying to simulate with simscape and learn things about MATLAB on the way. By the way plot did'nt work but saving is OK.
FG
FG 2020년 3월 3일
I thank you for your effort..

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Logging에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by