Error unexpected MATLAB expression with min()

This is the program i wrote:
where new_x_PIRAM is a vector (1*251) ,But there is that an error 'unexpected Matlab expression that appears
Can u tell me how to correct it?

 Akzeptierte Antwort

Star Strider
Star Strider am 27 Apr. 2019

1 Stimme

You’re missing a comma.
Try this:
pc = min(pa, pb);

Weitere Antworten (1)

dorra boukari
dorra boukari am 27 Apr. 2019

0 Stimmen

Thanks !! It works :)

Kategorien

Mehr zu Mathematics finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by