Conditional statement in a for/if loop
Afficher commentaires plus anciens
Hi,
I'm trying to write a loop with 5 variables. Here's what I want to do in words, but can't make my code work
for every value of Frame
if LBOS > RBOS
give LDSM
else give RDSM
I'd like the results to be displayed in a table alongside the associated Frame value. I hope that makes sense.
Thanks very much!
1 commentaire
Alex Mcaulley
le 6 Juin 2019
How is your data?
whos Frame
whos LBOS
whos RBOS
whos LDSM
whos RDSM
Réponse acceptée
Plus de réponses (1)
Fraje Watson
le 6 Juin 2019
Catégories
En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!