MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Matrix OutputDavid Bailey,

  • To: mathgroup at
  • Subject: [mg71020] Re: Matrix OutputDavid Bailey,
  • From: David Bailey <dave at>
  • Date: Sat, 4 Nov 2006 23:07:18 -0500 (EST)
  • References: <eihm3d$ot3$>

Liz wrote:
> 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
What language are you writing in here - it is certainly not Mathematica 

Let us not use 'E', as it stands for the base of the natural logarithms, 
so suppose you have a matrix M, you can view it as a matrix using:


David Bailey

  • Prev by Date: General--Another Trigonometric Problem....NEED HELP
  • Next by Date: Re: Tricky visualization of maximization problem
  • Previous by thread: Re: General--Another Trigonometric Problem....NEED HELP
  • Next by thread: Lists and polynomials