필터 지우기
필터 지우기

plotting graph

조회 수: 1 (최근 30일)
bikal shrestha
bikal shrestha 2012년 5월 14일
how to plot the graph by reading the file from "name.txt" in a realtime mode with a interval of 0.004. I was able to plot the data from txt file but can't do in realtime mode... this is the code-- %from here clc %x=0:0.008:2.048 x(1)=0; fid = fopen('name.txt', 'r'); for i=1:257 d=textscan(fid,'%n',1); x=x+0.008 y(i)=x; a(i)=d{:}; end for i=1:257 pause on pause (0.004) m=y(i); n=a(i); plot (m,n) ylabel('voltage(mv)') xlabel('time(ms)') title('ECG of normal ECG') grid end fclose(fid)
%program ended any help will be greatly appreciated... thanx in advance..

답변 (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