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 CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by