필터 지우기
필터 지우기

How to plot the columns (second till 15) data against the firs column (simulation time) instead of plotting against the serial number in once by pressing the plot button?

조회 수: 1 (최근 30일)
I have got data from scope in work space, these data are seven columns, the first one is time (simulation time) the rest are data, My question is I usually open these data and select the columns except the first on and press the plot button, but this process will plot the columns data against the serial number (1 to 100) How to plot against the first column which is simulation time without using commands?

채택된 답변

Matt Fig
Matt Fig 2012년 11월 16일
편집: Matt Fig 2012년 11월 16일
Let's say your data looks like this:
D = (0:.01:1).'; % Used to make the data array...
D = [D bsxfun(@power,D,1:10)]; % Here is your data array
The first column of D is the independent variable, the other columns are dependent. To plot, do this:
plot(D(:,1),D(:,2:end))

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by