Thread Subject:
How to write a "version tracking/backup" function?

Subject: How to write a "version tracking/backup" function?

From: Marco Wu

Date: 7 Feb, 2011 22:54:03

Message: 1 of 1

Assume I have an ADD which I need to modify many times. I want to keep the record of what it has been modified.

I want to write up a BACKUP function which only need to attach a single command line in ADD to do the backup.

function [x] = add(a,b)
   BACKUP();
x = a+b;
end


==============
the backup will open a txt file and save all char below the command line to the txt file. I can open and write a file, but I have no clue how to do "save all char below the command line" to the txt file

OR
 Any other idea?

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
command Marco Wu 7 Feb, 2011 17:59:04
save Marco Wu 7 Feb, 2011 17:59:04
function Marco Wu 7 Feb, 2011 17:59:04
fprintf Marco Wu 7 Feb, 2011 17:59:04
write file Marco Wu 7 Feb, 2011 17:59:04
rssFeed for this Thread

Contact us