Hi, I want use a string saved in a variable like name of a symbol. If a='name', then i want to create a symbol called name (syms name). How can i do it?
Thanks a lot for your answers. Pietro Rossi

 採用された回答

Paulo Silva
Paulo Silva 2011 年 5 月 11 日

0 投票

a='name'
syms(a)

1 件のコメント

Pietro Rossi
Pietro Rossi 2011 年 5 月 11 日
Now, how can I use this variable?
i.e a='name'
syms (a)
c=cos(name)
but i don't know string in a..

サインインしてコメントする。

その他の回答 (1 件)

Pietro Rossi
Pietro Rossi 2011 年 5 月 11 日

0 投票

THANK YOU SO MUCH!!!

Community Treasure Hunt

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

Start Hunting!

Translated by