remove the empty values
Show older comments
I want to remove the empty values so that each value has its own variable names
3 Comments
Florian Bidaud
on 14 Jul 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
on 14 Jul 2023
Dyuman Joshi
on 14 Jul 2023
So you want to get the 1st and 3rd row from the excel sheet?
Answers (2)
NAVNEET NAYAN
on 14 Jul 2023
0 votes
Please take hint/help from the following link:
Florian Bidaud
on 14 Jul 2023
Edited: Florian Bidaud
on 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),:)
Categories
Find more on Data Import from MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!