필터 지우기
필터 지우기

How to initialize a row vector with value zero of size 1xn?

조회 수: 112 (최근 30일)
Shubham Maurya
Shubham Maurya 2016년 2월 19일
댓글: Khileshwar Rajpuriya 2021년 4월 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)

채택된 답변

jgg
jgg 2016년 2월 19일
Look up the documentation for the zeros function, which you are using:
A = zeros(1,n);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by