I havent started my experiment yet I am trying to do coding in MATLAB so are saying assume the value I dont whether the value will be " ZERO " or " POSITIVE " or " NEGATIVE " in that case what I will do.
Example assume (x = ?)
What shall be my assumption assume (x>0) or (x<0) or (x=0)

 Réponse acceptée

KALYAN ACHARJYA
KALYAN ACHARJYA le 11 Déc 2020
Modifié(e) : KALYAN ACHARJYA le 11 Déc 2020

0 votes

If x will be a single value (scalar), it does not need to be defined as initialization. But you can start it as zero, later X can be replaced by reassessment data.
e,g
x=0;
But if x evaluated data will be vector, then proper preallocation is recommended

Plus de réponses (0)

Catégories

En savoir plus sur Mathematics dans Centre d'aide et File Exchange

Produits

Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by