Changing file path in a loop and save figures

Illustration
neha - 2022-11-14T09:40:06+00:00
Question: Changing file path in a loop and save figures

I want to run a code where inside every folder i have a data file and save in each folder a .fig. Can anyone help me?  

Expert Answer

Profile picture of Neeta Dsouza Neeta Dsouza answered . 2025-11-20

Try this to indicate the entire path:

 

savefig(fullfile(thisDir,'DN.fig'))

 


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!