Feeds
질문
How do I write a MATLAB code for A (in body) that doubles the elements that are greater than 6, and raises to the power of 2 the elements that are negative but greater than -2?
A=[5 10 -3 8 0; -1 12 15 20 -6]
거의 13년 전 | 답변 수: 2 | 0
2
답변질문
How can I write the MATLAB code f(x) = x + 5 for 0<x<10?
The following code did not solve the problem. if ((0 < x) | (x < 100)) y = x + 5 end
거의 13년 전 | 답변 수: 4 | 0