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

 Risposta accettata

Star Strider
Star Strider il 3 Mar 2020

1 voto

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.

Più risposte (0)

Categorie

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by