sym2str

버전 1.1.0.0 (1.88 KB) 작성자: Martin Lawson
Converts symbolic variables to matlab strings using array opperations.
다운로드 수: 2.9K
업데이트 날짜: 2009/2/3

라이선스 보기

Converts symbolic variables to a Matlab equation string insuring that only array opps are used. Symbolic arrays are converted to linear Cell arrays of strings. This function is most often used to prepare symbolic answers for use with the "eval()" command. Also, converts Maple "atan" function to Matlab "atan2". Converts
Maple "array([[a,b],[c,d]])" notation to matlab "[a,b;c,d]" notation.

Note: eval() of a matrix only works if all the input variables have single values. i.e. vectors and arrays won't work.

Note2: eval() does not work on Cell arrays directly. Use "Cell_array{index}" to keep eval() happy

인용 양식

Martin Lawson (2024). sym2str (https://www.mathworks.com/matlabcentral/fileexchange/19217-sym2str), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R13
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Symbolic Math Toolbox에 대해 자세히 알아보기
도움

줌: campodir

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.0

Added a code example to the help.

1.0.0.0

A bone headed copy-paste error causes improper results when processing symbolic arrays. ('i' and '1' are hard to tell apart :P )