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

2 Ansichten (letzte 30 Tage)
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.

Antworten (1)

KSSV
KSSV am 28 Apr. 2022
Read about fillmissing. You can fill the gaps/ NaN's using that function.
  5 Kommentare
KSSV
KSSV am 28 Apr. 2022
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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by