Indexing cell array column from excel data
2 次查看(过去 30 天)
显示 更早的评论
Hey I am trying to make a array using data from excel. I already import the data , the problem is trying to get matlab recognize the colmuns. This is the code:
g=Experimental(:,B)
f=Experimental(:,C:E);
But when i run the code it doesn't recognize the g of the code. This is what I would get:
Unrecognized function or variable 'B'.
Error in l320w40_staticplot (line 13)
g=Experimental(:,B)
Please help!!
0 个评论
回答(1 个)
Star Strider
2022-6-3
I do not have the matrices, however if they are already imported, use MATLAB indexing conventions to address them —
g=Experimental(:,2)
f=Experimental(:,3:5);
.
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!