producing syms
이전 댓글 표시
hi I`m saeed I want to write a script that ask me the n (number) and then produce sym n characters respectively like x1 x2 x3 x3 ... thanks
답변 (1개)
Oleg Komarov
2011년 8월 1일
% Create names X1,...,Xn
vars = arrayfun(@(v) sprintf('x%d',v),1:n,'un',0);
% Create syms
syms(vars{:})
카테고리
도움말 센터 및 File Exchange에서 Conversion Between Symbolic and Numeric에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!