Effacer les filtres
Effacer les filtres

How can I pass to parfeval a handle of the class method that accepts name-value arguments?

7 vues (au cours des 30 derniers jours)
Hello,
How can I pass to parfeval a handle of the class method that accepts name-value arguments?
Thanks!

Réponse acceptée

Matt J
Matt J le 12 Avr 2022
Modifié(e) : Matt J le 12 Avr 2022
Given an object of the class, obj,
fun=@(varargin) obj.method(varargin{:});
parFeval(fun,____)
  2 commentaires
Alex Alex
Alex Alex le 12 Avr 2022
Thanks, Matt, it helps. And how can I pass an argument there? Which is expected to be a name-value pair.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Parallel for-Loops (parfor) dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by