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