필터 지우기
필터 지우기

help with plotting matrix

조회 수: 1 (최근 30일)
random1072
random1072 2020년 4월 17일
댓글: random1072 2020년 4월 17일
I Have to plot my K_tilde_linear matrix that i created where the x values start at 1 and go to 15. The Y values are supposed to be the K_tilde matrix. When i simply type plot(K_tilde_linear) i get my desired graph except it is not a smooth linear curve, it has a bunch of lines going vertically. Can someone help me with this please. Attached is a picture of my current graph as well as my code. Thank you
current graph

채택된 답변

David Hill
David Hill 2020년 4월 17일
Not sure if this is what you want or not. Looks like the only values in the matrix are on the diagonal.
plot(1:14,diag(K_tilde_linear));
  댓글 수: 1
random1072
random1072 2020년 4월 17일
Yes, thank you very much

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by