multiply to matrix with strings

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 Kommentare

José-Luis
José-Luis am 6 Mai 2014
Please read the "Getting started" part of the documentation.
Azzi Abdelmalek
Azzi Abdelmalek am 6 Mai 2014
The question is not clear

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Andrei Bobrov
Andrei Bobrov am 6 Mai 2014

0 Stimmen

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

Kategorien

Mehr zu Characters and Strings finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 6 Mai 2014

Beantwortet:

am 6 Mai 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by