Solution 552181

Submitted on 5 Jan 2015
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
%% zmap1s=uint32(randi(2^32,1000,1)); % Write File to enable memory map load fid = fopen('zmap1s.dat','w'); fwrite(fid, zmap1s, 'uint32'); fclose(fid); dir goal=zmap1s(1) clear zmap1s % Create the memmap variable zmap1s = memmapfile('zmap1s.dat','Format', 'uint32','Writable',true); % accessing the data y = access_mem_map_file(zmap1s); % accessing the data assert(isequal(y,goal)); assert(isequal(,2));

Error: Assertion failed.