I want to empty a variable q, i used q={} or q=[ ],but why it doesn't work , thank you
1 次查看(过去 30 天)
显示 更早的评论
q
ans=
'4400002970000003533'
'8500000190000013093'
'8500000190000045501'
'8500000840000005660'
'8500000840000006008'
'8500090100000000354'
'8500090100000007316'
'8500090100000009112'
'8500090100000009112'
'8500090100000010547'
1 个评论
Stephen23
2014-10-6
You don't show us what you are doing, and expect us to tell you why it doesn't work. Please provide the full code you are trying to run.
采纳的回答
Adam
2014-10-6
q = cell.empty;
will give you an empty cell array if that is what you want. I don't know what you whole code looks like, but this should keep it in the correct type for next time round the loop I think.
更多回答(1 个)
Azzi Abdelmalek
2014-10-6
编辑:Azzi Abdelmalek
2014-10-6
q={ '4400002970000003533' '8500000190000013093' '8500000190000045501' '8500000840000005660' '8500000840000006008' '8500090100000000354' '8500090100000007316' '8500090100000009112' '8500090100000009112' '8500090100000010547'}'
q=[]
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!