Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
Hello Friends,
I am facing a problem for putting a IF function for a matrics
a=(1
2
3
-5
10)
Thats a is in matrics format.
WL=3
if function reqired that
h= if a>WL then WL
else if a<0 then 0
else WL
Now i am not getting the solution due to "a" is in matrics format and WL is a scalar format
and i want "h" also as matrics format.
Expected answer of h=(1
2
3
0
3) But i want to know how to write the programm for that