Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
I am new to Matlab. Can anyone explain how I get this simple prog to run on my mac?
조회 수: 1 (최근 30일)
이전 댓글 표시
%Initialise array
a=[1 -3 2 5];
try
%Try to display an element
index = input('Enter subscript of element to display: ');
disp[('a(int2str.(index))=(num2str.(a(index)')];
catch
%If we get here an error occurred
disp('Illegal subscript:int2str(index)');
end
댓글 수: 0
답변 (2개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!