Re-use the view output matrix in Matlab -
in matlab, create complicated 3d plot, manipulate view option hand point happy see (below). how can reuse parameters of final view? can output of view command 4 4 matrix, latter not seem reusable?
in order out of view can pass view reconstruct viewpoint, need specify two outputs view yield current azimuth , elevation.
[az, el] = view(ax1); you can pass these view on different (or same) axes specify viewpoint
view(ax2, az, el); you can use view property of axes object.
azel = get(ax1, 'view'); set(ax2, 'view', azel); note, however, there many properties control view of axes including projection, dataaspectratio, plotboxaspectratio , of camera properties. depending on use case, may need specify these well.

Comments
Post a Comment