MATLAB Answers


Expressing a matrix with parameters and letters

Asked by Giacomo Mastroddi on 11 Nov 2019
Latest activity Commented on by Giacomo Mastroddi on 14 Nov 2019 at 20:53
in my homework it is asked to solve B*b. The solution should however contain the three variables F1, F2 and F3 that are in b.
How can I write it? They just suggest to use the "sym" command...


Sign in to comment.

1 Answer

Answer by Ajay Pattassery on 14 Nov 2019
 Accepted Answer

Define the variables F1, F2, and F3 as symbolic variables.
syms F1, F2, F3
B = inv(A);
b = [0 F1 0 F2 0 F3 0 0 0 ];
x = B*b;
Refer here for more information

  1 Comment

thank you very much!!!

Sign in to comment.