how do i save and load this file into a human readable format(asked by question)
4 views (last 30 days)
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 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)
See Also
Categories
Find more on Creating and Concatenating Matrices 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!