Info

This question is closed. Reopen it to edit or answer.

previous good values calculations

5 views (last 30 days)
Tiberius
Tiberius on 16 Apr 2014
Closed: MATLAB Answer Bot on 20 Aug 2021
Let's say I have x=[4.01 1004 1003 4.05 4.07 1899 1920] I want to change the big values according to the previous small value. For simplicity, let's say I want to apply a square and then add the big value. Thus, I'll have : y=[4.01 4.01*4.01+1004 4.01*4.01+1003 4.05 4.07 4.07*4.07+1889 4.07*4.07+1920 ].
If you want, let's say the small values are between 4 and 5 and the big ones between 1000 and 2000.
Thanks.

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!