Storing products in a folder in my directory
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
charles atlas
el 16 de Mzo. de 2015
Comentada: charles atlas
el 17 de Mzo. de 2015
All,
So I have a script that reads data with urlread and then stores the data in a .txt file. I store the working directory I am in in a variable called "filePath" and then when I create the text file, I store that text file in my directory.
Code:
userDir = pwd;
filePath = [userDir,'\station_data_',datestr(now,30),'.txt'];
fid = fopen(filePath,'w');
This is similar to a question that somebody helped me out with last week. But what I want to do is store the text file in a folder that I create on my directory. I will call this folder "products"
Any help is much appreciated.
- Charles
0 comentarios
Respuesta aceptada
Sean de Wolski
el 16 de Mzo. de 2015
mkdir and fullfile are your friends here.
mkdir('products')
fullfilepath = fullfile(userDir,'products','dfjksdf.txt')
Más respuestas (0)
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!