필터 지우기
필터 지우기

remove the empty values

조회 수: 2 (최근 30일)
PA
PA 2023년 7월 14일
편집: Florian Bidaud 2023년 7월 14일
I want to remove the empty values so that each value has its own variable names
  댓글 수: 3
PA
PA 2023년 7월 14일
This is the excel file and the output i need is L and T but i get this output as shown in the image
Dyuman Joshi
Dyuman Joshi 2023년 7월 14일
So you want to get the 1st and 3rd row from the excel sheet?

댓글을 달려면 로그인하십시오.

답변 (2개)

NAVNEET NAYAN
NAVNEET NAYAN 2023년 7월 14일

Florian Bidaud
Florian Bidaud 2023년 7월 14일
편집: Florian Bidaud 2023년 7월 14일
A = readtable("Book2.xlsx")
L1 = A.Value1([A.Parameters{:}] == 'L')
L2 = A.Value2([A.Parameters{:}] == 'L')
T1 = A.Value1([A.Parameters{:}] == 'T')
T2 = A.Value2([A.Parameters{:}] == 'T')
If you want to keep a table :
B = A(~isnan(A.Value1),:)

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by