필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

defining variable in matlab

조회 수: 1 (최근 30일)
Nermeen alami
Nermeen alami 2013년 2월 22일
마감: MATLAB Answer Bot 2021년 8월 20일
hi can i define a constant in matlab? if yes how can do that
thank u all

답변 (2개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 2월 22일
편집: Azzi Abdelmalek 2013년 2월 22일
You have not to define it in Matlab. You can pre-allocate
a=0
%or for a vector
a=zeros(10,1)
% or for a matrix
a=zeros(10)

Nermeen alami
Nermeen alami 2013년 2월 22일
thanks a lot :) it works
  댓글 수: 1
Image Analyst
Image Analyst 2013년 2월 23일
Mark it as "Accepted" then, as well as for any other questions you have posted. Also, your message here should have been a Comment to Azzi's Answer, not an Answer in itself.

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by