123456789 |
- % full3D.m
- % Converts a 3D sparse matrix structure back to a non-sparse matrix.
- % Singles are converted back to doubles as well.
- function A = full3D(Asparse)
- A = zeros(Asparse.x_count,Asparse.y_count,Asparse.z_count,'single');
- A(Asparse.non_zero_indices) = single(Asparse.non_zero_values);
|