Specify output data type of "find" function
Mostrar comentarios más antiguos
I'm working in simulink and I am running some heavy image processing on a lightweight 32 bit drone. Is there a way to specify the output data type of find? I can convert the row/col indecies to singles after, but it seems like a waste to not set that beforehand. Changing the input matrix type seems to have no effect. Is there something akin to the "like" functionality when using "zeros" or "ones"?
a = rand(5);
class(find(a>.5,1,'first'))
class(find(single(a)>.5,1,'first'))
class(find(single(a>.5),1,'first'))
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre MATLAB Support Package for Parrot Drones en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!