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?

 採用された回答

Star Strider
Star Strider 2019 年 4 月 27 日

1 投票

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

その他の回答 (1 件)

dorra boukari
dorra boukari 2019 年 4 月 27 日

0 投票

Thanks !! It works :)

1 件のコメント

Star Strider
Star Strider 2019 年 4 月 27 日
As always, my pleasure!

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by