Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Using loops to solve probles please assist

조회 수: 1 (최근 30일)
Vhugala  Raphunga
Vhugala Raphunga 2020년 3월 29일
마감: MATLAB Answer Bot 2021년 8월 20일
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
Ameer Hamza
Ameer Hamza 2020년 3월 29일
It seems like a homework question. What have you tried already?

답변 (1개)

Cris LaPierre
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.

Community Treasure Hunt

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

Start Hunting!

Translated by