ttest() error (switch on line 9)

조회 수: 2 (최근 30일)
Yagmur Ozdemir
Yagmur Ozdemir 2020년 5월 26일
답변: Maadhav Akula 2020년 5월 31일
Hello,
I am strangely getting this error when I try to run ttest() on a structure that is 91*1 single. Does anyone have an idea why, I couldn't find anything online.
Error in ttest (line 9)
switch (kind)
Thank you so much for the help, I really appreciate it!!
Best,
Idil
  댓글 수: 3
Yagmur Ozdemir
Yagmur Ozdemir 2020년 5월 26일
Two path directories show up.One is in the path I specified in the beginning of my script, the other one below, the default I guess, shows with " % Shadowed." I am using a server, hence some multiple source directories.
Tommy
Tommy 2020년 5월 26일
The first path - where did this function come from? As far as I can tell, the ttest published by TMW doesn't have a switch statement at line 9.

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

답변 (1개)

Maadhav Akula
Maadhav Akula 2020년 5월 31일
Hi Yagmur,
I think you have a file named ttest.m in your current Matlab path which is shadowing the original ttest file, please rename the file to avoid such conflicts. You can have a look at the following post on how to name a script file:
Hope this helps!

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by