when I run this code I get Undefined function or variable 'U'.
Informazioni
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Mostra commenti meno recenti
for i=1:n
h=u(1:n,i:i);
b=a(i,1);
if b>0.0001
U(1:n,i:i)=h/sqrt(b);
end
end
[N,M]=size(U);
1 Commento
Jan
il 6 Nov 2018
By the way, i:i is a waste of time. Use i only.
Risposte (1)
Bruno Luong
il 4 Nov 2018
MATLAB makes distinction between upper case and lower case in variable name. If you call
[u,d,v]=svd(K);
then you have to use small u afterwards, or the opposite.
4 Commenti
Rui Mauaie
il 6 Nov 2018
Stephen23
il 6 Nov 2018
@Rui Mauaie: please show us the complete code that you used.
Jan
il 6 Nov 2018
@Rui Mauaie: And a copy of the complete error message.
Bruno Luong
il 6 Nov 2018
He also deleted the code he posted previously making my comment difficult to understand.
Questa domanda è chiusa.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!