Solution for using rowfun but with a function handle ?
Mostra commenti meno recenti
Hi,
I want to apply my own function to every row of a numeric matrix. I currently use cellfun but the need for conversion from numeric to cell array and vice versa takes some time, time I want to save.
rowfun doesn't work with function handle, and arrayfun also returns a cell array.
My function has two input and two output arguments.
Is there a Matlab way to do so ?
Edit : I actually want to improve my insiside2Dset function cpu time, and especially line #105 (firt line inside the for loop). Test / example #1 is at the end of comment section above
Thank you for help.
Cheers,
Nicolas
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Loops and Conditional Statements 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!