How to create bar graph with formula and have nan in the import excel?

1 回表示 (過去 30 日間)
Shahirul Ashraf
Shahirul Ashraf 2022 年 4 月 28 日
コメント済み: Shahirul Ashraf 2022 年 4 月 28 日
Hi, I want to create bar graph by using Matlab GUI. The result shows that the 2 bar graph shows and the 2 other bar graph with nan didnt show (RES, LES).The attachment shows the coding & the excel file. Please help.

回答 (1 件)

KSSV
KSSV 2022 年 4 月 28 日
Read about fillmissing. You can fill the gaps/ NaN's using that function.
  5 件のコメント
KSSV
KSSV 2022 年 4 月 28 日
A = [NaN 1 2 NaN NaN 3] ;
A(isnan(A)) = []
A = 1×3
1 2 3
You can remove the NaN's using the above line.
Shahirul Ashraf
Shahirul Ashraf 2022 年 4 月 28 日
i have try this before, not work.

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

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by