Info

この質問は閉じられています。 編集または回答するには再度開いてください。

can i get a program for this excel file..?

1 回表示 (過去 30 日間)
nani kalyan
nani kalyan 2015 年 5 月 27 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
here i am having so many values in the excel file.Now, in that column it should check each value with following values:
a) 0<=power>=56, the value should multiply with the 0.925 that means power*0.925.
a) 57<=power>=112, the value should multiply with the 0.925 that means power*0.952.
a) 113<=power>=168, the value should multiply with the 0.925 that means power*0.958.
a) 169<=power>=225, the value should multiply with the 0.925 that means power*0.959.
Similarly, i need to get the all values in that column should be check.

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 5 月 27 日
powerfactor = [0.925, 0.952, 0.958, 0.959]);
[count, binnum] = histc(power, [-inf, 57, 113, 169, inf]);
adjpower = power .* powerfactor(binnum);
Note: you have not defined what should happen between 56 and 57, or between 112 and 113, and so on. And you have not defined what should happen for below 0 or above 225.
  1 件のコメント
nani kalyan
nani kalyan 2015 年 5 月 27 日
編集済み: nani kalyan 2015 年 5 月 27 日
Error in .^ (line 8) [count, binnum] = histc(power, [-inf, 57, 113, 169, inf]);
Note: i have attached the excel file in that i have the max. value is 225 and the minimum values is 0. so, no need to find the below values.

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by