How to see cell array content without having to click on the cell?
3 次查看(过去 30 天)
显示 更早的评论
I have a cell array and I want all the values to be displayed without having to click on the cell. The cell only holds one value, so it should be possible right? It should display the value rather than "1x1 cell". This is the code I have. Must I include something or make any changes so my data displays the way I want it to?

for j = 1:length(inCircle)
inCirclestns{j,1} = coordinates(inCircle(j));
end
% find station number and convert to station name
for k = 1:length(inCircle)
if [inCirclestns{k,1}] <= 191
[inCirclestns{k,1}] = stations(find([stations{:,3}] == coordinates(inCircle(k,1))),6); % convert to string
else
[inCirclestns{k,1}] = [inCirclestns{k,1}]; % no change
end
end
1 个评论
采纳的回答
Walter Roberson
2017-6-9
[inCirclestns{k,1}] = stations{find([stations{:,3}] == coordinates(inCircle(k,1))),6}; % convert to string
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!