how to apply operations (like multiplication) to character array?
Mostrar comentarios más antiguos
how to apply operations (like multiplication) to character array like A=[a b c d] such that if i want to multiply the first element (a) in that array (A) to be finally appeared like that [a^2,ab,ac,ad] and then if i want to substitute the characters with any number like as : if a=2 then a^2=4 ,and if c=-3 then ac=-6 . thank you in advance
Respuestas (1)
Star Strider
el 14 de Feb. de 2016
0 votos
What you describe, requires the Symbolic Math Toolbox.
3 comentarios
Guillaume
el 14 de Feb. de 2016
... and has nothing to do with what matlab calls character arrays (also known as strings)
A = 'thisisacharacterarray';
mohammad
el 16 de Feb. de 2016
Walter Roberson
el 16 de Feb. de 2016
Are you asking how to re-implement the Symbolic Toolbox, or are you asking for us to point you to the Symbolic Toolbox User Guide, or are you asking us to do your homework for you?
Categorías
Más información sobre Number Theory en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!