remove the empty values
显示 更早的评论
I want to remove the empty values so that each value has its own variable names
3 个评论
Florian Bidaud
2023-7-14
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
2023-7-14
Dyuman Joshi
2023-7-14
So you want to get the 1st and 3rd row from the excel sheet?
回答(2 个)
NAVNEET NAYAN
2023-7-14
0 个投票
Please take hint/help from the following link:
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),:)
类别
在 帮助中心 和 File Exchange 中查找有关 Data Import from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!