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

 Akzeptierte Antwort

Star Strider
Star Strider am 3 Mär. 2020

1 Stimme

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.

Weitere Antworten (0)

Kategorien

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by