Double vs single

10 ビュー (過去 30 日間)
M G
M G 2011 年 3 月 30 日
Hey guys,
I have two matrices: < 57x600x27 double > and < 57x600x14 single >.
1- I got these matrices exactly from identical dataset. What is the reason that one is double and another is single?
2- How can I change the Single to Double? (because I cannot filter it (Chebyshev filter) when it is single and an error message appreas like "_Input arguments must be 'double'").
Thanks for your help!

採用された回答

Matt Fig
Matt Fig 2011 年 3 月 30 日
1- That would depend on how your dataset was generated. We really have no way of knowing that.
2- Use the DOUBLE function. For example, create a matrix of ones of type single, then convert it to a matrix of ones of type double:
double(ones(3,'single'))
  3 件のコメント
per isakson
per isakson 2014 年 3 月 31 日
編集済み: per isakson 2014 年 3 月 31 日
Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh 2014 年 4 月 1 日
@ Per isakson
Thanks so much! ;)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by