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?

 Accepted Answer

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

More Answers (1)

Categories

Find more on Mathematics in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!