Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: help append with dlmwrite

Subject: help append with dlmwrite

From: john rootroot

Date: 28 Jul, 2007 17:03:32

Message: 1 of 4

hi
i have a csv file in the form of
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3

and a matlab variable in the workspace with data like
4
4
4
4
4
4

i would like to add these data to the csv file so my csv file looks like:
1 2 3 4
1 2 3 4
1 2 3 4
1 2 3 4
1 2 3 4
1 2 3 4

Is this possible?

thanks for help.

Subject: Re: help append with dlmwrite

From: us

Date: 28 Jul, 2007 17:28:36

Message: 2 of 4

john rootroot:
<SNIP reaching for the stars: wants to add cols with <dlmwrite> to an existing file...

> Is this possible?

no
us

Subject: Re: help append with dlmwrite

From: john rootroot

Date: 28 Jul, 2007 21:33:46

Message: 3 of 4

thanks,

so what should i do?
open both files in workspace then concatenate them in a third
or copy the second variable in the first one?

what commands is the best to do it smoothly?

tkanks.

Subject: Re: help append with dlmwrite

From: us

Date: 29 Jul, 2007 02:56:13

Message: 4 of 4

john rootroot:
<SNIP looking for a workaround...

> so what should i do...
> open both files in workspace then concatenate them in a third...

that is exactly what we would do (to keep the original data sets)...

us

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
dlmwrite us 28 Jul, 2007 13:30:21
rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics