MathGroup Archive 2010

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

Search the Archive

Re: Exporting a vector

  • To: mathgroup at
  • Subject: [mg108901] Re: Exporting a vector
  • From: Albert Retey <awnl at>
  • Date: Tue, 6 Apr 2010 07:26:09 -0400 (EDT)
  • References: <hpcjhn$mvv$>


> I want to export a vector from a loop statement with two counting
> variables, i,j. as an example:
> w0=1;dk=1;
> eq= a function of w and k;
> Do[{w[i] = i*w0}; {eq1[i] =eq /. w -> w[i]}; {k[j] =  j*dk}; b[i, j] =
> eq1[i]/.k-> k[j]}];bet[i] = Min[bet[i, j]], {i, 1, 5}, {j, 1, 5}] ;
> When I try to name the Do loop and export to excel, it exports the
> whole matrix with the size 5*5.
> How can I export the vector bet[i] from the loop?

I think you have sent this already and got a similar answer: If you
expect people to help you, you should:

a) take the time to learn at least the very basics of Mathematica
b) send complete simplified examples that actually can be executed to
see what the problem is.
c) describe what it is that you try to achieve.
d) avoid to make statements that are not true (Do does not return
anything, and for sure it does not export as a 5*5 matrix to excel!)



  • Prev by Date: customized sliders
  • Next by Date: Re: Intel MKL 10
  • Previous by thread: Exporting a vector
  • Next by thread: Re: Exporting a vector