code in script called swap

조회 수: 1 (최근 30일)
Jose Morales
Jose Morales 2020년 1월 24일
답변: James Tursa 2020년 1월 25일
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
James Tursa 2020년 1월 24일
Do you have any ideas for how to do this? What would the algorithm be?
Jose Morales
Jose Morales 2020년 1월 24일
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

댓글을 달려면 로그인하십시오.

답변 (1개)

James Tursa
James Tursa 2020년 1월 25일

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by