Need to map values to 0:1 scale for efficiencies..... Help?!

Folks,
Basically I am modeling the affects of altitude on Wind turbines, ICE, and micro turbines. I have all the math done,and I have a 1x17 matrix of values for each power source. So if elevation is my X axis I was efficiency to be my Y axis. However the output values from the 3 different sources vary by several powers of 10. I basically want to standardize each of the 1x17 matricies to new 1x17 matrix of values ranging from 0 to 1 that correspond to the original values. This way I can graph all 3 on one graph against altitude.
I hope this makes sense, and someone can help.
thanks. Maksim

回答 (2 件)

Matt Fig
Matt Fig 2012 年 10 月 18 日

0 投票

Why not use:
semilogy
to plot the efficiencies if they vary by orders of magnitude?

2 件のコメント

Maksim Vakulenko
Maksim Vakulenko 2012 年 10 月 18 日
I tried this, however it seems to only graph one of the 3, and gives the code that negative values are ignored.
Matt Fig
Matt Fig 2012 年 10 月 18 日
How did you call the function? And how can efficiency be negative?
x = 1:17; % Altitudes
y1 = rand(1,17)*10^-4; % Efficiencies differ
y2 = rand(1,17)*10^-2; % By orders of magnitude.
y3 = rand(1,17);
semilogy(x,y1,x,y2,x,y3)

サインインしてコメントする。

Maksim Vakulenko
Maksim Vakulenko 2012 年 10 月 18 日

0 投票

I figured out what I am going to do. I find the max value of each matrix, then I divide each value by the max to get a max value of 1. Works well.

カテゴリ

ヘルプ センター および File ExchangeWind Power についてさらに検索

質問済み:

2012 年 10 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by