subvar

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 Center および MATLAB AnswersSymbolic 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