Understanding the conditional output beginning with (t == 0 | v == 0)
1 view (last 30 days)
Show older comments
Upon integrating a time dependent variable, an exerpt to my solution contains the following: (t == 0 | v == 0) & m ~= n & m + n ~= 0 & 0<= v*t, the solution... I seem to understand every other thing except for this (t == 0 | v == 0). I need an explanation to (t == 0 | v == 0) please. Thank you.
0 Comments
Answers (1)
David Hill
on 26 Jul 2022
logical (t==0 or v==0)
t=randi(5,1,20)-1
v=randi(5,1,20)-1
idx=(t==0|v==0)
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!