code in script called swap
显示 更早的评论
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 个评论
James Tursa
2020-1-24
What have you done so far? What specific problems are you having with your code?
Jose Morales
2020-1-24
James Tursa
2020-1-24
Do you have any ideas for how to do this? What would the algorithm be?
Jose Morales
2020-1-24
回答(1 个)
James Tursa
2020-1-25
0 个投票
You can adapt the three lines of code found here:
类别
在 帮助中心 和 File Exchange 中查找有关 Verification, Validation, and Test 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!