If loop not executed in a function
이전 댓글 표시
Hi everyone,
I'm trying to build a simple function that gives values to parameters based on input. Attached are my programs
In the main program, if I input ship_type='Passenger ship', then everything worked fine
But when I change it to ship_type='cargo ship' or 'container ship', I get the error message 'Matrix dimensions must agree'
So I'm confused.
What's wrong with my program?
Btw, I'm using version 2017a
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Parallel Computing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!