Usings subs on matrices ?
Show older comments
Hi everyone,
I'm trying to substitute variables in a matrix, but I run in something a little bit weird. When using the command "C = subs(C, exp1, exp2)", the result is not the matrix that I would have had if I had done the same substitution for all elements of C. How can it be ?
2 Comments
Jos (10584)
on 31 Oct 2013
Edited: Jos (10584)
on 31 Oct 2013
Your question is too vague. Can you give a very small example of
- your input
- what you did
- what you got as output
- what you expected to get
Added: I do not know a command called SUBS
Matthieu
on 31 Oct 2013
Answers (1)
Johannes Korsawe
on 31 Oct 2013
C(C==exp1) = exp2;
??
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!