How to fix Index exceeds matrix dimensions error?

12 次查看(过去 30 天)
Kindly have a look at the errors.
Error in expression for 'project_wind/Wind Turbine/wind_speed^3', an input index exceeds its input width of 1
Error in port widths or dimensions. 'Output Port 1' of 'project_wind/Wind Turbine/Wind speed (m//s)' is a [1x1] matrix.

回答(1 个)

Mathieu NOE
Mathieu NOE 2021-1-13
hello Philip
I corrected some minor bugs in matlab function blocks
also lambda_nom is not initialized so I took lambda_nom = 1 to run the code
last point you have to fix is that when pitch_angle is zero , there are division by zeros in your cp(lambda,beta) block
all the best,
mathieu
  13 个评论
Philip Liju
Philip Liju 2021-1-14
This works as I want it to be. Thank you so much for your help .. Really appreciate it

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by