Videoquickcloseandopen

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Video/Audio/PDF
Introduced first in SolidGeometry 5.0, Creation date: 2021-01-11, Last change: 2025-09-15

Simple concept to create videos from figures

Description

This is a simplified concept for the more complex "imageVideo..." functions
Videoquickstart
Videoquickwritetitle
Videoquickwritegcf
Videoquickcloseandopen


See Also: drawnowvid , Videoquickwritetextpage , Videoquickstart , Videoquickwritegcf

Example Illustration

 missing image of Videoquickcloseandopen(vw)

Syntax

Videoquickcloseandopen(vw)

Input Parameter

vw: video writer




Copyright 2021-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Algorithm (Workflow)

This function, Videoquickcloseandopen, is part of the SG-Library and is used to manage video files created from figures. It is a simplified version of more complex video functions.

Input Parameters

Algorithm Steps

  1. The function begins by calling drawnowvid, which likely updates the current figure or video frame.
  2. The function retrieves the video writer object using getfuncparams with the first argument from varargin or the global Videoquick_vw.
  3. If the video writer object vw is not empty, it constructs the full path of the video file by concatenating vw.Path, a file separator, and vw.Filename.
  4. The video writer is then closed using the close function.
  5. If the video writer object is empty, the function sets nn to an empty array.
  6. If there are no output arguments (nargout==0), the function attempts to open the video file by calling openbydoubleclick with the constructed file path.

Global Variables

Assumptions

Algorithm explaination created using ChatGPT on 2025-08-19 00:20. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21