MATLAB: Store fllepath in variable filesave Hello all! Quick question: is it possible to store a fullpath: C:\Users\ecorbett\Documents\MATLAB\Labelers\fred into a variable and use that variable in functions like csvwrite? Best Answer Yes. Just store it as a string. filepath = 'C:\Users\ecorbett\Documents\MATLAB\Labelers\fred'; filename = 'text.csv'; csvwrite(fullfile(filepath,filename),MatrixYouWantToStoreToFile); Related SolutionsMATLAB: How to specify the file path for csvwrite to write a file to csvwrite('C:\Users\T4H14\Documents\myfile.csv',mydata) MATLAB: Writing matlab result to a txt file HiHave you tried csvwrite? csvwrite('myfile.txt', M);I'm sure R can read csv files. Related QuestionExporting multiple CSV’sGetting Error in csvwriteHow to open data file by browsing it – MATLAB GUIHow to save the csv file with different name in a loop after every iteration
Best Answer