I am getting a 'Argument must contain a string' error.
Show older comments
[fileName,filePath] = uigetfile({'*.txt'},'Pick a file','MultiSelect','on')
pathToFile = fullfile(filePath,fileName)
x= size(pathToFile,2)
store=load(pathToFile(:,1));
prompt ='Please choose the Stress column';
stress=store(:,input(prompt));
prompt ='Please choose the strain column';
strain=store(:,input(prompt));
4 Comments
Stephen23
on 8 May 2017
@sivalogan satchithanandamoorthy: please edit your question and show the complete error message This means all of the red text. You have multiple commands, and we are not going to be able to help you much if we have to guess where the error occurs.
sivalogan satchithanandamoorthy
on 8 May 2017
Edited: Walter Roberson
on 8 May 2017
Adam
on 8 May 2017
Where does 'str' come from?
sivalogan satchithanandamoorthy
on 8 May 2017
Accepted Answer
More Answers (0)
Categories
Find more on Low-Level File I/O in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!