remove the empty values
1 view (last 30 days)
Show older comments
I want to remove the empty values so that each value has its own variable names
3 Comments
Answers (2)
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),:)
0 Comments
See Also
Categories
Find more on Spreadsheets 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!