Article View: aus.stats.s
Article #16082help persp
From: David Adams
Date: Thu, 05 Mar 1992 19:11
Date: Thu, 05 Mar 1992 19:11
21 lines
1314 bytes
1314 bytes
Let f(x,y) be a function of x and y that I want to plot in 3-d as with the persp() function. Without loss of generality suppose that x and y both range from 0 to 1. In order to use the persp() function to plot f I need to create a matrix z where z[i,j]<-f(x[i],y[j]) (do I understand this correctly?) Now my question is: Is there a simple straightforward vector or matrix like statement I can use to create z given an arbitrary f, or do I need to use a double "for loop" which I consider to be akward and slow? --David C. Adams Statistician Cray Research Inc. dadams@cray.com __________________________________________________________________ Did you know that most americans eat over a ton of dirt every day?
Technical Details
Message-ID:
<9203051829.AA20220@cherry10.cray.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!metro!dmssyd.syd.dms.CSIRO.AU!newsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa931,6cb5c3067b4945e9,start X-Google-Attributes: gidfa931,public X-Google-ArrivalTime: 1992-03-05 17:36:08 PST Newsgroups: aus.stats.s Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!metro!dmssyd.syd.dms.CSIRO.AU!news From: dadams@cherry.cray.com (David Adams) Subject: help persp Message-ID: <9203051829.AA20220@cherry10.cray.com> X-Gateway: dmssyd.syd.dms.CSIRO.AU Lines: 25 Sender: daemon@syd.dms.CSIRO.AU Organization: CSIRO Div. Maths & Stats, CSIRO Div. Applied Physics Date: Thu, 5 Mar 1992 19:11:41 GMT