How to create null vector Matlab
이전 댓글 표시
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
Just Manuel
2021년 2월 18일
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
2021년 2월 18일
Just Manuel
2021년 2월 18일
Yep, then go with Bjorn Gustavsson's answer.
Cheers
Manuel
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!