how do i save and load this file into a human readable format(asked by question)
Show older comments
x = input(' Enter any integer in the range betwwen 0 to 255,x:');
if (x<0)
disp('-1')
elseif (x>255)
disp('error.Value too big')
else
fprintf('<%d>\n',x)
end
disp('mcheck');
save mcheck.m;
clear all;
load mcheck.m;
3 Comments
Geoff Hayes
on 26 Nov 2014
Ernest - what exactly do you want to save to file, the integer x or something else?
ernest
on 27 Nov 2014
Geoff Hayes
on 27 Nov 2014
First, update your above code to iterate the ten times and collect the user input into an array. Once you have done that, and applied mcheck to each input, then write the array to file.
Answers (0)
Categories
Find more on Whos 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!