remove the empty values

I want to remove the empty values so that each value has its own variable names

3 comentarios

Florian Bidaud
Florian Bidaud el 14 de Jul. de 2023
Hi,
Remove the empty values from what ?
What do you mean by 'each value has it own variable names' ?
Can you share your code ?
PA
PA el 14 de Jul. de 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 el 14 de Jul. de 2023
So you want to get the 1st and 3rd row from the excel sheet?

Iniciar sesión para comentar.

Respuestas (2)

Florian Bidaud
Florian Bidaud el 14 de Jul. de 2023
Editada: Florian Bidaud el 14 de Jul. de 2023

0 votos

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),:)

Categorías

Más información sobre Data Import from MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

PA
el 14 de Jul. de 2023

Editada:

el 14 de Jul. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by