How to fix Index exceeds matrix dimensions error?

12 vues (au cours des 30 derniers jours)
Philip Liju
Philip Liju le 13 Jan 2021
Commenté : Mathieu NOE le 14 Jan 2021
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.

Réponses (1)

Mathieu NOE
Mathieu NOE le 13 Jan 2021
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 commentaires
Philip Liju
Philip Liju le 14 Jan 2021
This works as I want it to be. Thank you so much for your help .. Really appreciate it
Mathieu NOE
Mathieu NOE le 14 Jan 2021
you 're welcome !

Connectez-vous pour commenter.

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by