| MATLAB Central > MATLAB Newsreader > Data Reading/Plotting: Matrix names as alpha-numer... |
|
|
|
Subject: Data Reading/Plotting: Matrix names as alpha-numeric filenames and auto-updating legend From: Stan Date: 1 Jul, 2012 22:39:07 Message: 1 of 12 |
|
I am importing several data files and plotting data from these files on the graph (same x-values). The data consist of 2 columns - x-values in column 1 and y-values in column 2. Since there will be numerous data sets on the same graph, I must add a legend for the plots. However, I would like the legend to update automatically after more data sets to the graph. I do not know ahead of time how many data sets will be plotted on the same graph. |
|
Subject: Data Reading/Plotting: Matrix names as alpha-numeric filenames From: dpb Date: 2 Jul, 2012 16:45:43 Message: 2 of 12 |
|
On 7/1/2012 5:39 PM, Stan wrote: |
|
Subject: Data Reading/Plotting: Matrix names as alpha-numeric filenames From: Stan Date: 4 Jul, 2012 21:21:07 Message: 3 of 12 |
|
Oh that's a very nice way to generate the matrix. Thanks for that. |
|
Subject: Data Reading/Plotting: Matrix names as alpha-numeric filenames From: dpb Date: 4 Jul, 2012 22:41:55 Message: 4 of 12 |
|
On 7/4/2012 4:21 PM, Stan wrote: |
|
Subject: Data Reading/Plotting: Matrix names as alpha-numeric filenames From: Stan Date: 4 Jul, 2012 23:30:08 Message: 5 of 12 |
|
> So, what's wrong w/ |
|
Subject: Data Reading/Plotting: Matrix names as alpha-numeric filenames From: dpb Date: 5 Jul, 2012 03:03:03 Message: 6 of 12 |
|
On 7/4/2012 6:30 PM, Stan wrote: |
|
Subject: Data Reading/Plotting: Matrix names as alpha-numeric filenames From: Steven_Lord Date: 5 Jul, 2012 03:10:55 Message: 7 of 12 |
|
|
|
Subject: Data Reading/Plotting: Matrix names as alpha-numeric filenames From: Stan Date: 5 Jul, 2012 03:13:06 Message: 8 of 12 |
|
> The pause() has no bearing other than to slow it down enough you can see |
|
Subject: Data Reading/Plotting: Matrix names as alpha-numeric filenames From: dpb Date: 5 Jul, 2012 03:42:37 Message: 9 of 12 |
|
On 7/4/2012 10:13 PM, Stan wrote: |
|
Subject: Data Reading/Plotting: Matrix names as alpha-numeric filenames From: Stan Date: 5 Jul, 2012 16:46:08 Message: 10 of 12 |
|
The |
|
Subject: Data Reading/Plotting: Matrix names as alpha-numeric filenames From: dpb Date: 5 Jul, 2012 17:45:33 Message: 11 of 12 |
|
On 7/5/2012 11:46 AM, Stan wrote: |
|
Subject: Data Reading/Plotting: Matrix names as alpha-numeric filenames From: Stan Date: 6 Jul, 2012 04:06:08 Message: 12 of 12 |
|
Ah thanks. That was easy. char worked. I simply inserted as indicated and it did the same thing. |
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 |
| loop | Stan | 4 Jul, 2012 17:24:10 |
| dynamic | Stan | 4 Jul, 2012 17:24:10 |
| plot | Stan | 1 Jul, 2012 18:39:10 |
| matrix | Stan | 1 Jul, 2012 18:39:10 |
| importdata | Stan | 1 Jul, 2012 18:39:10 |
| cell aray | Stan | 1 Jul, 2012 18:39:10 |
| legend | Stan | 1 Jul, 2012 18:39:10 |
| matrix variable | Stan | 1 Jul, 2012 18:39:10 |
| array | Stan | 1 Jul, 2012 18:39:10 |
| fileparts | Stan | 1 Jul, 2012 18:39:10 |
