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 Exchange에서 Characters 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