From: Darren Rowland on 17 Mar 2010 04:13 Alex, This may be what you're after % Some random data x = 0.1:0.1:1; y = sort(rand(1,10)); % Number of radial spokes n = 21; % Transform data for cylindrical presentation theta = linspace(0,2*pi,n); xr = x.'*cos(theta); zr = x.'*sin(theta); yr = repmat(y.',1,n); surf(xr,zr,yr) Hth Darren
From: Alex Johns on 17 Mar 2010 11:51 "Darren Rowland" <darrenjremovethisrowland(a)hotmail.com> wrote in message <hnq2uj$b73$1(a)fred.mathworks.com>... > Alex, > This may be what you're after > > % Some random data > x = 0.1:0.1:1; > y = sort(rand(1,10)); > > % Number of radial spokes > n = 21; > > % Transform data for cylindrical presentation > theta = linspace(0,2*pi,n); > > xr = x.'*cos(theta); > zr = x.'*sin(theta); > yr = repmat(y.',1,n); > > surf(xr,zr,yr) > > Hth > Darren Hi Darren. That code worked perfectly for what I wanted to do. It wasn't even very hard to implement. Thank you so much. It also looks REALLY cool Alex
First
|
Prev
|
Pages: 1 2 Prev: how to clean data set under couple of conditions Next: syntax problem with LOAD and strings |