Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: real newbie question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg64404] Re: [mg64396] real newbie question
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Thu, 16 Feb 2006 03:05:11 -0500 (EST)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

data={{kx1,ky1,kz1,E1},{kx2,ky2,kz2,E2},{kx3,
      ky3,kz3,E3},{kx4,ky4,kz4,E4},{kx5,ky5,kz5,E5}};

Table[#[[{n,4}]]&/@data,{n,3}]

{{{kx1, E1}, {kx2, E2}, {kx3, E3}, {kx4, E4}, {kx5, E5}}, 
  {{ky1, E1}, {ky2, E2}, {ky3, E3}, {ky4, E4}, 
   {ky5, E5}}, {{kz1, E1}, {kz2, E2}, {kz3, E3}, 
   {kz4, E4}, {kz5, E5}}}


Bob Hanlon

> 
> From: "Skip Egley" <Skip.Egley at synopsys.com>
To: mathgroup at smc.vnet.net
> Subject: [mg64404] [mg64396] real newbie question
> 
> Sorry for the newbieness. This is probably a piece of cake for you folks.
>  
> I have a set of Brillouin zone data. That is, there's a kx, ky, and a kz 
followed by an energy value. How can I select particular directions in the 
Brillouin zone out of this data and make a 2D plot of it. A k value followed by 
an energy value. For instance, say I want to plot along the kx axis. I would 
need to select all kx values such that ky and kz were zero and grab the 
matching energy value for the kx value. Or if I wanted to plot along a (110) 
direction, I would need to grab all kx=ky values with kz=0, along with the 
corresponding energy. Get my drift?
>  
> Once I have the data I do know how to plot it (not that much of a newbie) :)
>  
> Eagle Eye
> 
> 


  • Prev by Date: Re: real newbie question
  • Next by Date: Formatted Output (Exporting Data)
  • Previous by thread: Re: Re: real newbie question
  • Next by thread: New Statistical Inference Package add-on for Mathematica now available