Matlab to determine if there is a folder, if it does not exist, create a new folder

Source: Internet
Author: User
1. Determine if the specified video_name is present, and if it does not exist, create a new Video_name folder under the given Save_path:

1 sec_path = [Save_path, Video_name, '/'];2 if ~exist (sec_path, ' file ') 3 mkdir ([Save_path, Video_name]); 4 End

2. Convert Gpuarray to a format that MATLAB can save, such as: Uint8.
If you save the Gpuarray data directly, it'll warning you some errors like this:


and translate it into numeric or logical is necessary ...


Single format using ' Gather ' function which is the MATLAB inside function.

im2uint8 (gather(person_image));



Matlab to determine if there is a folder, if it does not exist, create a new folder

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.