Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

defining variable in matlab

1 visualización (últimos 30 días)
Nermeen alami
Nermeen alami el 22 de Feb. de 2013
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
hi can i define a constant in matlab? if yes how can do that
thank u all

Respuestas (2)

Azzi Abdelmalek
Azzi Abdelmalek el 22 de Feb. de 2013
Editada: Azzi Abdelmalek el 22 de Feb. de 2013
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 el 22 de Feb. de 2013
thanks a lot :) it works
  1 comentario
Image Analyst
Image Analyst el 23 de Feb. de 2013
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.

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by