How to level data of an excel file using Matlab

1 回表示 (過去 30 日間)
Supriya Gain
Supriya Gain 2022 年 5 月 1 日
コメント済み: Voss 2022 年 5 月 2 日
I have an excel files which contains file names like:[oil_1%_water_2%],[oil_2%_water_4%],[oil_6%_water_1%],... And it's a column matrix data. Now I have to give a certain leveling. For example if water percentage is higher than oil then level it as 1. And if Oil percentage is higher then level the data as -1. And output excel file should be looks like, like:[oil_1%_water_2%,1],[oil_2%_water_4%,1],[oil_6%_water_1%,-1],..... Can anyone please tell me how to do that using MATLAB.
  4 件のコメント
Voss
Voss 2022 年 5 月 2 日
Thank you for the information.
Voss
Voss 2022 年 5 月 2 日
Comment from @Supriya Gain on my (deleted due to changing requirements) answer moved here:
Also I'm changing my question a bit. If the water percentage is greater than 1% then mark that sample as -1 and if the oil percentage is greater than 2%, then mark that sample as -1. Other than that mark sample as 1. If any one of the component crosses their threshold then that samplee is bad and mark them as -1.
For better clarity I'm attaching one Input sample file and one expected output file.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by