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 件のコメント

José-Luis
José-Luis 2014 年 5 月 6 日
Please read the "Getting started" part of the documentation.
Azzi Abdelmalek
Azzi Abdelmalek 2014 年 5 月 6 日
The question is not clear

サインインしてコメントする。

回答 (1 件)

Andrei Bobrov
Andrei Bobrov 2014 年 5 月 6 日

0 投票

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

カテゴリ

ヘルプ センター および File ExchangeCharacters and Strings についてさらに検索

質問済み:

2014 年 5 月 6 日

回答済み:

2014 年 5 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by