code in script called swap

1 vue (au cours des 30 derniers jours)
Jose Morales
Jose Morales le 24 Jan 2020
write a few lines of code that swap the values of x and y. Put your code in a script called swap and test it.
  4 commentaires
James Tursa
James Tursa le 24 Jan 2020
Do you have any ideas for how to do this? What would the algorithm be?
Jose Morales
Jose Morales le 24 Jan 2020
I do not. I'm new to this and I'm confused just as you are. Here's the full question:
To test your understanding of assignment statements, write a few lines of code that swap the values of x and y. Put your code in a script called swap and test it

Connectez-vous pour commenter.

Réponses (1)

James Tursa
James Tursa le 25 Jan 2020

Catégories

En savoir plus sur Get Started with MATLAB 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