Double vs single

2 visualizaciones (últimos 30 días)
M G
M G el 30 de Mzo. de 2011
Comentada: Salaheddin Hosseinzadeh el 1 de Abr. de 2014
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!

Respuesta aceptada

Matt Fig
Matt Fig el 30 de Mzo. de 2011
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 comentarios
per isakson
per isakson el 31 de Mzo. de 2014
Editada: per isakson el 31 de Mzo. de 2014
Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh el 1 de Abr. de 2014
@ Per isakson
Thanks so much! ;)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by