Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

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

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.

Contact us