Info
此问题已关闭。 请重新打开它进行编辑或回答。
How to read numbers from this mat file ?
1 次查看(过去 30 天)
显示 更早的评论
Hi, how can I read the numbers from this .mat file (file attached). Currently, I was using the following code. The problem is its reading 2.3*e-4 as only 2.3. The part with e-4 is missing.
a=regexp(text,'(?<==)\d+(.)?(\d+)?','match','once')
id=~cellfun(@isempty,a(:,1))
a=str2double(a(id))
Thanks.
采纳的回答
Azzi Abdelmalek
2015-7-17
编辑:Azzi Abdelmalek
2015-7-17
a=regexpi(text,'(?<==)[-+\d]+(.)?([\d-+ث]+)?','match','once') id=~cellfun(@isempty,a(:,1)) b=a(id) out=str2double(b)
0 个评论
更多回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!