Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: AVGPOWER
Replies: 2   Last Post: Aug 4, 2010 9:49 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Putrisia Hendra

Posts: 11
Registered: 4/16/10
Re: AVGPOWER
Posted: Aug 4, 2010 12:01 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Putrisia Hendra " <putrisiazahra@gmail.com> wrote in message <i3anpt$ocd$1@fred.mathworks.com>...
> hi guys..
> actually i just want to ask you about AVGPOWER in Matlab..
> this function tell us about average power a signal.
> so, if we want to use that function in GUI how we can do that? i mean what should we d first?
> i have some code:
>
> % compute the power spectrum, telling the FFT to use length(x) as the number of
> %points in the FFT, and to use the sampling frequency 256Hz.
> [P,f] = periodogram(x2,[],length(x2),256);
> %the function returns a vector of frequencies at which the FFT was computed, f,
> %and the power at each frequency, P.
>
>
> temp_1((1:15386),1)=P;
> temp_1((1:15386),2)=f;
> delta=[temp_1((1:8),1) temp_1((1:8),2)];
> theta=[temp_1((9:16),1) temp_1((9:16),2)];
> alpha=[temp_1((17:24),1) temp_1((17:24),2)];
> beta=[temp_1((25:40),1) temp_1((25:40),2)];
> delta=sortrows(delta);
> alpha=sortrows(alpha);
> beta=sortrows(beta);
> theta=sortrows(theta);
>
> d=avgpower(delta)
>
> set(handles.delta,'String',d)
> guidata(hObject,handles)
>
> avgpower is dosnt work here..
>
> are there any solution bout my code?





there are the error explanation

??? Error using ==> skripsi>hitung_Callback
Too many output arguments.

Error in ==> skripsi>delta_CreateFcn at 252
set (hitung_Callback,avgpower(delta));

Error in ==> gui_mainfcn at 96
feval(varargin{:});

Error in ==> skripsi at 42
gui_mainfcn(gui_State, varargin{:});

??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn

??? Error using ==> skripsi>hitung_Callback
Too many output arguments.

Error in ==> skripsi>delta_CreateFcn at 252
set (hitung_Callback,avgpower(delta));

Error in ==> gui_mainfcn at 96
feval(varargin{:});

Error in ==> skripsi at 42
gui_mainfcn(gui_State, varargin{:});

??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn



Help Me Plis...!



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.