subvar

버전 1.0.0.0 (2.03 KB) 작성자: Per-Anders Ekstrom
Symbolic variable substitution in expression.
다운로드 수: 2K
업데이트 날짜: 2007/2/1

라이선스 보기

SUBVAR(S,OLD,NEW) replaces OLD with NEW in the expression S.
OLD is a string or cell of strings representing variable names to be substituted by NEW in the expression S.

Only variables defined as using SYMVAR are substituted. That is in expressions like 'f(1)', SUBVAR interprets the symbol 'f' as a function call, not as an index into a symbolic variable.

Example:
subvar('sin(a*exp(2.3*-b))+a',{'a','b'},{'u(1)','u(2)'})
returns 'sin(u(1)*exp(2.3*-u(2)))+u(1)'

인용 양식

Per-Anders Ekstrom (2024). subvar (https://www.mathworks.com/matlabcentral/fileexchange/13832-subvar), MATLAB Central File Exchange. 검색됨 .

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

Community Treasure Hunt

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

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