필터 지우기
필터 지우기

How to plot part of the data from larger data file?

조회 수: 7 (최근 30일)
Neha Gawande
Neha Gawande 2015년 8월 7일
댓글: Neha Gawande 2015년 8월 7일
I have a text file containing 5 columns and 63 rows of data. I want to extract first 21 rows of first 2 columns and plot them in matlab. How can i do it?

채택된 답변

bio lim
bio lim 2015년 8월 7일
A = rand(63, 5);
sub_A = A(1:21, [1 2]);
You can extract the 21 rows of the first two columns like this and proceed with your plot.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2015년 8월 7일
The easiest way is to load all of the data and then index it to extract the portion you want.

카테고리

Help CenterFile Exchange에서 Graphics Object Identification에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by