Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: continuous acquisition
Date: Wed, 12 Dec 2007 20:11:12 +0000 (UTC)
Organization: DW-TV
Lines: 32
Message-ID: <fjpf90$1qu$1@fred.mathworks.com>
References: <fj60m2$p81$1@fred.mathworks.com> <fj66ch$sgs$1@fred.mathworks.com> <fj6cug$2vu$1@fred.mathworks.com> <fj9d6l$97$1@fred.mathworks.com> <fjb0ua$cfc$1@fred.mathworks.com> <fjbaqs$mu0$1@fred.mathworks.com> <fjbgs7$ggp$1@fred.mathworks.com> <fjbr8b$qi7$1@fred.mathworks.com> <fjma9f$8d4$1@fred.mathworks.com> <fjpesn$p3d$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1197490272 1886 172.30.248.38 (12 Dec 2007 20:11:12 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 12 Dec 2007 20:11:12 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1095707
Xref: news.mathworks.com comp.soft-sys.matlab:442220




Some correction:
> 
> function update_plot(hObject, eventdata, handles)
> 
> handles = guidata(handles.figure1);       
>      
> inpt = getdata(handles.ai,handles.N_in);
>   
> handles.AvgMat(handles.AvgCount,:) = inpt';             
> inpt = mean(handles.AvgMatRotate);
> handles.AvgCount = handles.AvgCount + 1; 

> if handles.AvgCount == 10
>    handles.AvgCount = 1;
> end
> 
>   
> 
> 
> set(handles.hPlotSpec,'YData', inpt);  
>        
> guidata(handles.figure1, handles);            
> 
>      
>     
>   
> Hope it helps!
> LARS
> 
>