필터 지우기
필터 지우기

Plot with respect to real time

조회 수: 1 (최근 30일)
Mridul Tiwari
Mridul Tiwari 2015년 10월 7일
답변: TastyPastry 2015년 10월 7일
How can i plot a data with respect to real time ( time passed) ?

답변 (1개)

TastyPastry
TastyPastry 2015년 10월 7일
Determine what unit you're using for passed time. Assuming seconds, you can set your x-values to be
xValues = 0:t;
where t is the elapsed time from t=0.
Then you just need to set your y-values to whatever your data is.
yValues = data;
Make sure the dimensions of x and y are equal.
Call the plot function:
plot(xValues,yValues);

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by