scalar multiplication of two vectors giving me NAN,both are of same dimensions.

2 views (last 30 days)
motregenelecpower=regenpower.*moteffregen

Accepted Answer

Roger Stafford
Roger Stafford on 17 Feb 2018
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.

More Answers (0)

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!