Cannot save STUDY to external hard drive (MATLAB eeglab)

조회 수: 5 (최근 30일)
Luke Pezanko
Luke Pezanko 2022년 1월 4일
댓글: Luke Pezanko 2022년 1월 5일
I am having trouble saving my STUDY in EEGLAB to my external hard drive. I had no issues in the past and recently I am unable to save anything to this location. I have set my dr to the specified region and I beleive permissions have been checked and verified. The error I recieve is as follows:
Unable to write file 'xx.study'
This is not a bug (Error occured in function_savestudy() at line 171)
Here is the line of code in bold:
% [filepath filenamenoext ext] = fileparts(varargin{1});
% filename = [filenamenoext '.study']; % make sure a .study extension
STUDY.filepath = g.filepath;
STUDY.filename = g.filename;
STUDYfile = fullfile(STUDY.filepath,STUDY.filename);
STUDYTMP = STUDY;
STUDY = std_rmalldatafields(STUDY);
eeglab_options;
if option_saveversion6, save('-v6' , STUDYfile, 'STUDY');
else save('-v7.3' , STUDYfile, 'STUDY');
end
STUDY = STUDYTMP;
Any help would be greatly appreciated!
Thank you!
  댓글 수: 3
Luke Pezanko
Luke Pezanko 2022년 1월 5일
Doesn't seem to work. I keep receiving a "cannot get file position" error.
Luke Pezanko
Luke Pezanko 2022년 1월 5일
I have no problem loading a STUDY and when I try to dave on my desktop rather than my ssd I am able to but then encounter a javascript error when precomputing channel measures...

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

답변 (1개)

yanqi liu
yanqi liu 2022년 1월 5일
yes,sir,may be save as .mat file,such as
save('-v7.3' , [STUDYfile '.mat'], 'STUDY');
  댓글 수: 1
Luke Pezanko
Luke Pezanko 2022년 1월 5일
No luck. Don't see an option to save as a .mat. Am I to replace the line below 171 with the .mat line? I'm a novice so apologies in advance.

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

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by