필터 지우기
필터 지우기

Info

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

How can i create and save to a filename that derives from my data?

조회 수: 1 (최근 30일)
Angelos Mongolias
Angelos Mongolias 2018년 4월 2일
마감: MATLAB Answer Bot 2021년 8월 20일
x= 'a number from my data' (ex *117*)
y= 'another number from my data' (ex *00*)
q=['LOC1_2015_', *num2str(x)*,'_', *num2str(y)*,'_00_00000_CH1.mat']
q =
LOC1_2015_ *117*_ *00*_00_00000_CH1.mat
Now I want to create and save a file name with that name:
save('LOC1_2015_ *117*_ *00*_00_00000_CH1.mat')
Any ideas?
  댓글 수: 4
Angelos Mongolias
Angelos Mongolias 2018년 4월 2일
What I mean is how can I extract the value of a variable and use it as a filename?
(If we assume that q is the variable and LOC1_2015_ 117_ 00_00_00000_CH1.mat is the value of q)
Angelos Mongolias
Angelos Mongolias 2018년 4월 2일
My bad, problem solved. Was in front of my eyes as you said. Thank you!

답변 (0개)

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by