code in script called swap
Show older comments
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 Comments
James Tursa
on 24 Jan 2020
What have you done so far? What specific problems are you having with your code?
Jose Morales
on 24 Jan 2020
James Tursa
on 24 Jan 2020
Do you have any ideas for how to do this? What would the algorithm be?
Jose Morales
on 24 Jan 2020
Answers (1)
James Tursa
on 25 Jan 2020
0 votes
You can adapt the three lines of code found here:
Categories
Find more on Verification, Validation, and Test in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!