Hi All,
I'm attempting to threshold my data using their z-score values. However, it's not clear to me how I am meant to get actual z-score values if the zscore function in matlab give me a matrix where the columns are the values 1SD away when the mean is centered at 0. How could I threshold data to identify values with a z-score of 2 when the zscore function seems to give a matrix where all values have a z-score of 1. I might be reading the matrix incorrectly. CouldI please get some help with this?
Best,
Christiane

댓글 수: 4

the cyclist
the cyclist 2019년 11월 22일
Are you able to upload a *.mat file with your input?
Yes, but i could also insert the line of code that I'm trying to understnad here.
zData = zscore(data);
This is what you meant right? Just wanted to see the code?
Christiane Voufo
Christiane Voufo 2019년 11월 22일
I'm not sure I understood you question otherwise.
Christiane Voufo
Christiane Voufo 2019년 11월 22일
Alright, turns out I was overthinking things. I was able to understand the matrix generated with some help from a lab member.

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

 채택된 답변

Image Analyst
Image Analyst 2019년 11월 22일

0 개 추천

Try this, assuming a 1-D signal:
zScores = zscore(signal)
% Get indexes where zScores > 2
indexes = zScores > 2;
signalWithZMoreThan2 = signal(indexes);

댓글 수: 1

Christiane Voufo
Christiane Voufo 2019년 11월 22일
This is the answer that I got from a lab mate, not too long ago. Thank you for the input!!

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

질문:

2019년 11월 22일

댓글:

2019년 11월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by