필터 지우기
필터 지우기

plotting a graph using matlab

조회 수: 1 (최근 30일)
Vidhya Dharshini
Vidhya Dharshini 2014년 2월 5일
댓글: Vidhya Dharshini 2014년 2월 13일
I have the value of a time varying variable for every 5 seconds. How to plot a graph with it.

채택된 답변

Mischa Kim
Mischa Kim 2014년 2월 5일
편집: Mischa Kim 2014년 2월 5일
Try something like:
t = 0:5:100;
x = sin(t);
plot(t,x,'*')
xlabel('time in s')
ylabel('my y axis')
title('my title')
where x would represent your data. Make sure that the length of your time vector equals the length of your data vector.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by