MATLAB loop reading and Output

Source: Internet
Author: User

In the past two days, I want to give my tutor an experiment. Therefore, I need to write a MATLAB program, which involves reading and outputting cyclically and searching for relevant information.

The Code is as follows:

For I = image = ['f: \ sytp \ ', num2str( I },'.jpg']; texture (image); EVAL (['Save F: \ Effect Comparison \ wltz \ ', num2str (I)]); End

The Code means to read 129 sets of images cyclically. After processing, enter 129 sets of data.

The read image is 1.jpg ...... 129. jpg

The output data is 1.mate8 ...... 129. Mat

Save is followed by a path like this. If you need to add a unified variable name, such as ans1.mat ...... Ans129.mat

Add ans to the path. If the path is not specified, save the file to the current directory.

The same path is used for reading.

MATLAB loop reading and Output

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.