remove the empty values

3 Ansichten (letzte 30 Tage)
PA
PA am 14 Jul. 2023
Bearbeitet: Florian Bidaud am 14 Jul. 2023
I want to remove the empty values so that each value has its own variable names
  3 Kommentare
PA
PA am 14 Jul. 2023
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 am 14 Jul. 2023
So you want to get the 1st and 3rd row from the excel sheet?

Melden Sie sich an, um zu kommentieren.

Antworten (2)

NAVNEET NAYAN
NAVNEET NAYAN am 14 Jul. 2023

Florian Bidaud
Florian Bidaud am 14 Jul. 2023
Bearbeitet: Florian Bidaud am 14 Jul. 2023
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),:)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by