[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: How to input several data together?

**From**: |
Mike Miller |

**Subject**: |
Re: How to input several data together? |

**Date**: |
Mon, 14 Jul 2003 08:04:06 -0500 (CDT) |

On Mon, 14 Jul 2003, Ananda Murthy R S wrote:
>* In Octave is there any method of inputting several data at the same time*
>* as shown below:*
>
>* A=10*
>* B=30*
>* C=40*
You can do this on a single line...
A=10 , B=30 , C=40
...or this if you prefer to suppress output:
A=10 ; B=30 ; C=40;
Apparently, you *cannot* do this...
[A, B, C] = [10, 30, 40]
...or at least it doesn't do what I'd want it to do (it assigns the whole
vector to A and the B and C are null matrices.
Best,
Mike
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------