I want to plot selected data from rows and columns
조회 수: 34 (최근 30일)
이전 댓글 표시
I have data in a table and i want to plot first column (row 256 to 345) as X against second column (row 256 to 345) as Y. I need help
댓글 수: 0
답변 (3개)
Torsten
2022년 11월 9일
편집: Torsten
2022년 11월 9일
Plotting the second against the first column does not make much sense because the first column is the year and the second column is the month of the year, but here we go:
A = readmatrix("https://de.mathworks.com/matlabcentral/answers/uploaded_files/1186758/SN_m_tot_V2.0.txt");
plot(A(256:345,1),A(256:345,2))
댓글 수: 0
KSSV
2022년 11월 9일
T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1186758/SN_m_tot_V2.0.txt') ;
scatter3(T.(1),T.(2),T.(3),[],T.(3))
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!