Effacer les filtres
Effacer les filtres

Case instead of if-then?

5 vues (au cours des 30 derniers jours)
David Pesetsky
David Pesetsky le 18 Juin 2016
Commenté : Star Strider le 18 Juin 2016
Hi,
I have:
solveload=[0 0 0 'x' 'y' 'z'];
And need to determine only the position of the x, the y, and the z, when they could be anywhere in the vector, with 0's elsewhere. I'm finding I need a bunch of if-then's. It must be easier?
Thanks in advance :)
Dave

Réponse acceptée

Star Strider
Star Strider le 18 Juin 2016
There seem to be missing information.
What characterises ‘x’, ‘y’, and ‘z’?
What makes them so difficult to find? Range? Real/Complex? Something else?
  7 commentaires
David Pesetsky
David Pesetsky le 18 Juin 2016
Star Strider
Star Strider le 18 Juin 2016
I’m glad you solved it, because I have no idea how to differentiate x, y, and z from your description.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Reporting and Database Access dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by