How do I write this in to MatLab correctly? I always get Matrix dimensions must agree.

 採用された回答

Star Strider
Star Strider 2020 年 3 月 3 日

1 投票

Use element-wise operations as cescribed in Array vs. Matrix Operations, and create appropriate matrices from your x and y vectors with ndgrid or meshgrid. Use the resulting matrices in your equation, not vectors.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by