Using loops to solve probles please assist
信息
此问题已关闭。 请重新打开它进行编辑或回答。
显示 更早的评论
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
2020-3-29
It seems like a homework question. What have you tried already?
回答(1 个)
Cris LaPierre
2020-3-29
0 个投票
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!