How to assume 'symmatrix' variable as 'real'
Show older comments
I have created a few symbolic matrices:
syms x [6 1] matrix;
syms k [3 1] matrix;
syms C [3 6] matrix;
b_x = norm(C*x - k)^2;
I am creating a function
and want to differentiate it w.r.t x.
d_b_x = diff(b_x, x);
But this generates complex operators like 'conj' which I don't want. I want to assume that all the matrices in this example contain real entries.
How can I do this? The documentation did not have any such commands.
2 Comments
Nishanth Rao
on 14 Jul 2022
Edited: Nishanth Rao
on 14 Jul 2022
Nishanth Rao
on 14 Jul 2022
Edited: Nishanth Rao
on 14 Jul 2022
Accepted Answer
More Answers (0)
Categories
Find more on Calculus 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!