previous good values calculations

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.

Respuestas (0)

La pregunta está cerrada.

Preguntada:

el 16 de Abr. de 2014

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by