Specify output data type of "find" function
Mostra commenti meno recenti
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'))
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su MATLAB Support Package for Parrot Drones in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!