Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Using loops to solve probles please assist
조회 수: 1 (최근 30일)
이전 댓글 표시
Write a program (using loops) that doubles all the elements of x that are positive, and adds 10 to all the elements that are negative. x = [2 -5 6 7 -4 8 -5 6];
댓글 수: 1
답변 (1개)
Cris LaPierre
2020년 3월 29일
I recommend going through Chapter 13 of MATLAB Onramp. It takes about 10 minutes, and will help you learn how to use for loops.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!