Problem with Anderson-darling test

조회 수: 2 (최근 30일)
BN
BN 2023년 6월 22일
댓글: BN 2023년 6월 22일
Hello everyone,
I used a MATLAB FEX function namely AnDarksamtest, but after running the simple example as follows:
clear; clc;
X = [38.7 1;41.5 1;43.8 1;44.5 1;45.5 1;46.0 1;47.7 1;58.0 1;
39.2 2;39.3 2;39.7 2;41.4 2;41.8 2;42.9 2;43.3 2;45.8 2;
34.0 3;35.0 3;39.0 3;40.0 3;43.0 3;43.0 3;44.0 3;45.0 3;
34.0 4;34.8 4;34.8 4;35.4 4;37.2 4;37.8 4;41.2 4;42.8 4];
[AnDarksamtest, Pn] = AnDarksamtest(X);
I got this error:
Output argument "AnDarksamtest" (and possibly others) not assigned a value in
the execution with "AnDarksamtest" function.
It is worth mentioning that last year I used this code and its run perfect but now I get the error. Do you know how I can overcome this issue? Thank you all.

채택된 답변

dpb
dpb 2023년 6월 22일
The function definiton is
function [AnDarksamtest] = AnDarksamtest(X,alpha)
which doesn't have but one return variable and you asked for two -- which it can't do.
  댓글 수: 1
BN
BN 2023년 6월 22일
Thank you so much. It fixed my problem; really appreciate you.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by