How to assume an unknown value?

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)

 Accepted Answer

KALYAN ACHARJYA
KALYAN ACHARJYA on 11 Dec 2020
Edited: KALYAN ACHARJYA on 11 Dec 2020
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

More Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Products

Release

R2020a

Community Treasure Hunt

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

Start Hunting!