Plot matrix dependent on x against x

Hi all!
I have a 9x9 matrix, composed by the following equation:
CMR = inv(x*C1R+(1-x)*C0R);
Now, I need to plot the output CMR against x from 0 to 1 with a step of 0.01. How exactly do I program this in?
C1R and C0R are two 9x9 matrices with only real numbers inside.
I have no clue how to approach this, searching around for over an hour didn't work out either.
Thanks in advance!

댓글 수: 1

David Hill
David Hill 2022년 9월 8일
CMR is going to be a 9x9 matrix for each x. How do you want to plot CMR vs. x?

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

답변 (1개)

dpb
dpb 2022년 9월 8일

0 개 추천

You can/could try surf with X,Y the ordinal vectors 1:9 and Z-->CMR.
Use hold on to add for each x to add to the same plot; if the surfaces are separated by an amount would get a series at different heights. Otherwise use a tiledlayout for each.

카테고리

도움말 센터File Exchange에서 Line Plots에 대해 자세히 알아보기

제품

릴리스

R2021b

태그

질문:

DK
2022년 9월 8일

답변:

dpb
2022년 9월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by