Can't understand you I'm getting this error when using a for loop to add two arrays
2 次查看(过去 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 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!