How to create null vector Matlab
Ältere Kommentare anzeigen
Dear members
I have matrix with size M*N and vector with size 1*K
I want to create a null vector with length of N - length of K
I tried this :
V=zeros(1,length(N)-length(K));
but it doesn't work. Any solution please ?
Thank you.
3 Kommentare
Just Manuel
am 18 Feb. 2021
this would be easier if you told us what is not working. Do you get an error message? Or just an unexpected result?
As it stands, your code is valid.
Afluo Raoual
am 18 Feb. 2021
Just Manuel
am 18 Feb. 2021
Yep, then go with Bjorn Gustavsson's answer.
Cheers
Manuel
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!