필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Finding p values that are significant and copying .mat files into a separate folder

조회 수: 1 (최근 30일)
PAK
PAK 2018년 10월 17일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi All,
I have a series of .mat files in the directories "Pos" and "Neg". Within each mat file, there are a series of variables, one of which is called "pval", which is a cell array. What I'd like to do is loop through each directory, open the mat files, and find out if any of the cells in pval is < 0.05. If it is, I'd like to transfer that entire mat file (with all the variables) to a new directory called Pos_Significant or Neg_Significant (depending on which root directory I am in). I'm having a little trouble figuring out how to do this.
Any help would be greatly appreciated!
PAK
  댓글 수: 1
dpb
dpb 2018년 10월 17일
So, what have you tried so far?
See processing-a-set-of-files for some hints/examples.
There's a FEX submittal FILEFUN that's pretty handy sometimes as it has the file handling stuff already taken care of; you just pass the function to run on each file filefun-apply-a-function-to-files

답변 (0개)

이 질문은 마감되었습니다.

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by