MATLAB: Scalar multiplication of two vectors giving me NAN,both are of same dimensions.
scalar multiplication
motregenelecpower=regenpower.*moteffregen
Best Answer
A zero in one vector multiplied by a corresponding infinity in the other vector will give a NaN result. You would do well to check the contents of your vectors.
Best Answer