Borrar filtros
Borrar filtros

symbol from string

2 visualizaciones (últimos 30 días)
Pietro Rossi
Pietro Rossi el 11 de Mayo de 2011
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

Respuesta aceptada

Paulo Silva
Paulo Silva el 11 de Mayo de 2011
a='name'
syms(a)
  1 comentario
Pietro Rossi
Pietro Rossi el 11 de Mayo de 2011
Now, how can I use this variable?
i.e a='name'
syms (a)
c=cos(name)
but i don't know string in a..

Iniciar sesión para comentar.

Más respuestas (1)

Pietro Rossi
Pietro Rossi el 11 de Mayo de 2011
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