フィルターのクリア

I need to convert the number {11.741677 ] to {11741677} without the point

5 ビュー (過去 30 日間)
imola
imola 2014 年 8 月 7 日
編集済み: imola 2015 年 2 月 17 日
Dear all, I I need to convert the vector
{11.741667 3.913892 14.488700 8.746350 0.349066}
to integer numbers
{11741667 3913892 14488700 8746350 0349066}
thanks in advance, I really appreciate your help.

採用された回答

Patrik Ek
Patrik Ek 2014 年 8 月 7 日
編集済み: Patrik Ek 2014 年 8 月 7 日
It is always possible to go the long way around here.
a = {11.741667 3.913892 14.488700 8.746350 0.349066};
str = cellfun(@num2str,a,'un',false);
str = strrep(str,'.','');
myStream = horzcat(str{:});

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by