Problem 343. Back to basics 1 - Saving
Covering some basic topics I haven't seen elsewhere on Cody.
Given an input variable 'x', save it to disk in a file named 'cody.mat'.
Solution Stats
Problem Comments
-
3 Comments
Alfonso Nieto-Castanon
on 19 Feb 2012
is it intended that the test is isequal(load('cody.mat'),x) instead of isequal(load('cody.mat'),struct('x',x))?
Alan Chalker
on 19 Feb 2012
sorry.. updated the test suite to work as intended.. rescoring all solutions submitted.
Andrew Newell
on 20 Jun 2013
If I don't provide any output from the function, it works fine on my computer but not in this test.
Solution Comments
Show commentsProblem Recent Solvers565
Suggested Problems
-
3030 Solvers
-
Convert a numerical matrix into a cell array of strings
2314 Solvers
-
Set some matrix elements to zero
611 Solvers
-
Set the array elements whose value is 13 to 0
1425 Solvers
-
Split a string into chunks of specified length
2014 Solvers
More from this Author39
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!