How to plot a graph from matrix each row elements should start plotting from row number

I want to plot a graph from a matrix which contains 12 rows and 150 columns. Each row element should start plotting from row number.

답변 (1개)

madhan ravi
madhan ravi 2019년 9월 9일
편집: madhan ravi 2019년 9월 9일
I'm not certain what you want though , see if the below satisfies your needs:
plot(matrix)

댓글 수: 3

I am attaching my graph below, on Y axis all the row elements starting graph from zero, I want to start the graph for 1 st row from 1 and second row from 2 and so on. mat.jpg
For instance how do you want the graph for the below matrix:
matrix = [1,2;3,4] %?
Attach the desired graph screenshot.
matrix = [1,2;3,4]
1 and 2 are in row 1 so it should start print from y axis 1.
3 and 4 are in row 2 so it will start printing from y axis 2.

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

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

태그

질문:

2019년 9월 9일

편집:

2019년 9월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by