Set the image of the Matlab camera (in the main zoom)

So, I have a program in Matlab that creates a movie. The film consists of frames that look like this:

Now the camera angle is set as follows:

campos(1.0e+002 *[1.317650052908556 -1.507231720261665 0.834498724031213]); 

These numbers are used, turning to the correct view using the camera toolbar, then using the command:

  get(gca, 'CameraPosition') 

Now I want to set the camera scale. How can i do this?

Note. Scaling to the correct position and executing the get command described above does not return any difference. This is the same for all zoom positions.

+4
source share
1 answer

You can use the CameraViewAngle property to control camera zoom, for example.

 set(gca, 'CameraViewAngle', 0.5) 

set the angle or

 get(gca, 'CameraViewAngle') 

to request the current viewing angle.

+4
source

All Articles