How to initialize a row vector with value zero of size 1xn?
조회 수: 257 (최근 30일)
이전 댓글 표시
Say, I have a row vector A having n elements. I want to make all elements zero.
- For e.g., in 2-d, we write A=zeros(n)
댓글 수: 0
채택된 답변
jgg
2016년 2월 19일
Look up the documentation for the zeros function, which you are using:
A = zeros(1,n);
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!