symbol from string

조회 수: 8 (최근 30일)
Pietro Rossi
Pietro Rossi 2011년 5월 11일
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일
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일
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