Block matrices product using symmatrix type

조회 수: 1 (최근 30일)
Angelo Cacini
Angelo Cacini 2021년 4월 9일
댓글: Angelo Cacini 2021년 4월 21일
Hello,
I’m exploring the new type symmatrix. I’ve tried the following code and I expected to obtain the same result (i.e. ans1 == ans2), but this is not the case.
Where I’m wrong ?
Many thanks in advance.
Regads,
Angelo
syms A [2 2] matrix
syms B [2 1] matrix
syms C [2 2] matrix
syms D [2 1] matrix
F = [A, B; zeros(1,2), zeros(1,1)]
G = [C, D; zeros(1,2), eye(1)]
ans1 = symmatrix2sym(G*F)
syms A [2 2]
syms B [2 1]
syms C [2 2]
syms D [2 1]
F = [A, B; zeros(1,2), zeros(1,1)]
G = [C, D; zeros(1,2), eye(1)]
ans2 = G*F

채택된 답변

Pranav Verma
Pranav Verma 2021년 4월 21일
Hi Angelo,
I have brought this issue to the notice of our developers. They will investigate the matter further.
Thanks
  댓글 수: 1
Angelo Cacini
Angelo Cacini 2021년 4월 21일
Hi Pranav,
many thanks for your feedback and your support.
Angelo

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by