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
is it intended that the test is isequal(load('cody.mat'),x) instead of isequal(load('cody.mat'),struct('x',x))?
sorry.. updated the test suite to work as intended.. rescoring all solutions submitted.
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 Solvers537
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15289 Solvers
-
Remove all the words that end with "ain"
2128 Solvers
-
1592 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
998 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
366 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!