error "Invalid parameter name: CriticalValueType." in example code.

5 vues (au cours des 30 derniers jours)
Zoe Hughes
Zoe Hughes le 6 Jan 2023
Commenté : Star Strider le 6 Jan 2023
hi - when I run the example code for multicompare from the documentation, I am getting an error:
>> clear
>> pack
>> load carsmall
>> [~,~,stats] = anova1(MPG,Origin,"off");
>> [results,~,~,gnames] = multcompare(stats,"CriticalValueType","dunnett");
Error using internal.stats.parseArgs (line 42)
Invalid parameter name: CriticalValueType.
Error in multcompare (line 107)
internal.stats.parseArgs(okargs,defaults,varargin{:});
Is this a geck or a system setup issue?
Thanks

Réponse acceptée

Star Strider
Star Strider le 6 Jan 2023
If I understand correctly what you’re doing, that version of the multcompare function was introduced in R2022b, according to the documentation.
You will need to upgrade to use it.
(Thank you for posting the release you¹re using.)
  2 commentaires
Zoe Hughes
Zoe Hughes le 6 Jan 2023
Thanks!
Star Strider
Star Strider le 6 Jan 2023
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.

Connectez-vous pour commenter.

Plus de réponses (0)

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by