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에 대해 자세히 알아보기

태그

질문:

2020년 3월 3일

답변:

2020년 3월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by