Home › Mathematics › I Am Trying To Access A Method With A File:Matlab Oo Prog?
I am trying to access a method within the same file or shall i say the return value a function
I have a function called createleftwaveform and it returns a value which is stored in LeftWaveform
function LeftWaveform = createleftwaveform(obj, ~)
swept_chirp_up = 2*pi
LeftWaveform = swept_chirp_up;
end
There is another function called createleftsignal. I want it to do a fast fourier transform on the value gained in the above method so I tried typing obj.createleftwaveform. The line compiles but it fails on the Filtered_T stating that the Matrix dimensions must agree.
function LeftTxSignal = createleftsignal(obj, ~)
T = fft(obj.createleftwaveform());
Filtered_T = W.*T;
end
NOTE : I am just modularising my code so I am using OO - Matlab, this multiplication works there are no matrix dimension diagreements then. I just think that I am calling /accessing the value in a wrong way . I do not know how to fix it . PLEASE HELP!!!
Many thanks
-Anonymous
I have a function called createleftwaveform and it returns a value which is stored in LeftWaveform
function LeftWaveform = createleftwaveform(obj, ~)
swept_chirp_up = 2*pi
LeftWaveform = swept_chirp_up;
end
There is another function called createleftsignal. I want it to do a fast fourier transform on the value gained in the above method so I tried typing obj.createleftwaveform. The line compiles but it fails on the Filtered_T stating that the Matrix dimensions must agree.
function LeftTxSignal = createleftsignal(obj, ~)
T = fft(obj.createleftwaveform());
Filtered_T = W.*T;
end
NOTE : I am just modularising my code so I am using OO - Matlab, this multiplication works there are no matrix dimension diagreements then. I just think that I am calling /accessing the value in a wrong way . I do not know how to fix it . PLEASE HELP!!!
Many thanks
This is really a Programming & Design question. It's only vaguely related to math in that you're using FFT's.
-Anonymous
- worth 10 points and 5 stars!?" People I bought a router and got the cable that was put on the pc and the router the net works normal now I want reeconectar shape of the cab..."
- How holabuy buy sneakers?" I would like to buy some sneakers in holabuy i do not know how a href httpanswersyahoocomquestionindexqidAAwXZhttp..."
- I usually call my dog several names, and call him malafaia, just now, and he answered, I should pre?"a href httpanswersyahoocomquestionindexqidAApzJzhttpanswersyahoocomquestionindexqidAApzJza..."

(1 votes, average: 4.00 out of 5, rated)