multiply to matrix with strings
1 view (last 30 days)
Show older comments
hi everyone
how to multiply a matrix like
a =
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
and
b =
(1*x)
(2+x)
(3*5x)
(4*x^2)
and answer shown with 'x'
2 Comments
Answers (1)
Andrei Bobrov
on 6 May 2014
syms x
b =[(1*x)
(2+x)
(3*5*x)
(4*x^2)];
a =[ 1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16];
out = a*b
0 Comments
See Also
Categories
Find more on Characters and Strings 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!