Re: Matrix Output
- To: mathgroup at smc.vnet.net
- Subject: [mg71013] Re: [mg71001] Matrix Output
- From: danl at wolfram.com
- Date: Sat, 4 Nov 2006 23:07:08 -0500 (EST)
- References: <200611040908.EAA25111@smc.vnet.net>
> Hello, how to output the result "E" as matrix? Is there better way to get > the results and output the results into matrix? > Thanks in advance. > > > > A=[1 4]; > B=[2 5]; > E=zeros(4,2); > for m=1:length(A) > for n=1:length(B) > E=[A(m) B(n)] > end > end > "Better" is in the eye of the beholder, but me, I'd do it using Mathematica. Daniel Lichtblau Wolfram Research
- References:
- Matrix Output
- From: Liz <xmzwl@yahoo.com>
- Matrix Output