I'm try to load a some variables ( matrix,number ...) from a file .dat, but when I try to load I get the mistake load: failed to read matrix from file.
this is the main file
function resultado = batallaNaval()
init();
end
function resultado =init()
load historial.dat;
jugadas = historial()
end
The code the file historial.dat is:
a=[1 1 ;2 1; 3 0; 4 7];
numberBoats= 5;
which is the correct form to load the variables?