[Zz] How does the SAVE Function save data without overwriting the original file content?

Source: Internet
Author: User

Http://www.matlabsky.com/thread-10522-1-1.html

 

How does the SAVE Function save data without overwriting the original file content ??
Ladies and Gentlemen:
I want to use the SAVE Function to save a data matrix to a TXT text file. However, there are some textual descriptions in this file, which are useful to me, how can I use the SAVE Function to save data without overwriting these descriptions ??
Note: I only want to use the SAVE Function for saving. Can I achieve this purpose?

 

P = '000000 ';

Save('test_save.txt ', 'P','-ASCII ')

Type test_save.txt

S = '000000'

Save('test_save.txt ','s', '-ASCII', '-append ')

Type test_save.txt

Char(textread('test_save.txt '))

Ans =

888

121121121


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.