フィルターのクリア

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