フィルターのクリア

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 Center および File ExchangeData Import from MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by