Hi. Anyone know why this gives an error? I'm using MATLAB R2017b
A = [];
A.days ={'Monday','Tuesday'};
A.debt = randn(5);
if strcmp(class(A),'struct') && isscalar(A)
save('A.mat','-struct',A)
end
Error using save
The argument to -STRUCT must be the name of a scalar structure variable.

 채택된 답변

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Structures에 대해 자세히 알아보기

제품

릴리스

R2017b

질문:

2019년 6월 3일

댓글:

2019년 6월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by