Replies: 2 comments 1 reply
|
New approach to |
0 replies
|
Better yet! The package
Here's a method Tract_to_Tract_Calibration.m Cnty_MCs = Cnty_MC{1,3}(idx,:);
% THE NEW WAY: Read matrix from function that pulls matrix from file
Cnty_MCs = read_county_hdf(1, 3)(idx, :);
% Option 1:
Cnty_MCs = h5read([hdf_dir "cnty_mc.h5"], "/3/3")(idx, :)
% Option 2:
col_size = size(h5read([hdf_dir "cnty_mc.h5"], "/3/3"), 2);
Cnty_MCs = h5read([hdf_dir "cnty_mc.h5"], "/3/3", [idx, 1], [1, col_size]) |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Cnty_MCis read from HDF5 file stream,S.Cnty_MCvalues ever change. If not, then we could write a method every time we want a value fromCnty_MC, send a methodS,i, andjwhich returns one matrix at at time.All reactions