Can't understand you I'm getting this error when using a for loop to add two arrays
조회 수: 1 (최근 30일)
이전 댓글 표시
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1297620/image.png)
댓글 수: 1
Cameron
2023년 2월 16일
1) We don't know what the function get_AtmosProperties does.
2) It would help also if you posted your code instead of a screenshot of it.
3) Can you attach a .mat file?
채택된 답변
추가 답변 (1개)
Kevin Holly
2023년 2월 16일
One of you variables (P_Pa, p_Pa, or q_Pa) only has one row. So, when you iterate with the for loop, you get an error when i = 2. Check the size of your variables.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!