Info

This question is closed. Reopen it to edit or answer.

'Not enough input argument'

1 view (last 30 days)
Ife
Ife on 18 Nov 2014
Closed: MATLAB Answer Bot on 20 Aug 2021
Hi there,
I am trying to program for some estimation and correction techniques of IQ imbalance; i am currently trying to work on this code:
function f = myfun2(w,z)
y=z(1:end-1);
N=z(end);
T=(1:N)';
zhat = exp(1i*w*T);
Zhat = [zhat conj(zhat) ones(N,1)];
D=Zhat;
f= -y'*D*inv(D'*D)*D'*y;
but when i run it, it keeps coming up with 'not enough input argument'. Can someone please help me?
  2 Comments
the cyclist
the cyclist on 18 Nov 2014
Can you give an example of the code you use to run this function?
Ben11
Ben11 on 18 Nov 2014
If you press the run button in the editor this error will likely occur. Try calling the function in the command window with 2 arguments.

Answers (0)

Community Treasure Hunt

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

Start Hunting!