Click here to Skip to main content
15,891,136 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: 3D Graphing Package, Microsoft Mathematics Pin
C-P-User-324-Sep-14 12:11
C-P-User-324-Sep-14 12:11 
GeneralRe: 3D Graphing Package, Microsoft Mathematics Pin
C-P-User-324-Sep-14 12:12
C-P-User-324-Sep-14 12:12 
AnswerRe: 3D Graphing Package, Microsoft Mathematics Pin
Matt T Heffron24-Sep-14 12:19
professionalMatt T Heffron24-Sep-14 12:19 
GeneralRe: 3D Graphing Package, Microsoft Mathematics Pin
Matt T Heffron24-Sep-14 12:21
professionalMatt T Heffron24-Sep-14 12:21 
GeneralRe: 3D Graphing Package, Microsoft Mathematics Pin
rbuchana24-Sep-14 12:26
rbuchana24-Sep-14 12:26 
GeneralRe: 3D Graphing Package, Microsoft Mathematics Pin
C-P-User-324-Sep-14 12:24
C-P-User-324-Sep-14 12:24 
GeneralRe: 3D Graphing Package, Microsoft Mathematics Pin
rbuchana24-Sep-14 12:30
rbuchana24-Sep-14 12:30 
GeneralRe: 3D Graphing Package, Microsoft Mathematics Pin
Matt T Heffron24-Sep-14 13:09
professionalMatt T Heffron24-Sep-14 13:09 
Not quite "push of a button" but the mesh function is what you need.

You can try something like this:

function meshFunction(tx, ty, Z)
 ltx = length(tx);
 lty = length(ty);
 tz = zeros(ltx, lty);
 for xx = 1:ltx
  for yy = 1:lty
   tz(xx,yy) = feval(Z, tx(xx), ty(yy));
  endfor
 endfor
 mesh(tx, ty, tz);
endfunction

with
tx = ty = linspace (-8, 8, 41)’;

and defining a function "hat":
function z=hat(x,y)
 r = sqrt(x.^2 + y.^2) + eps;
 z = sin(r) ./ r;
endfunction

then
meshFunction(tx,ty,"hat");

should give you a simple 3d plot.
the tx and ty are the values over the x and y ranges, respectively.
The 3rd parameter is the name (as a string) of the function of x and y that returns z.
A positive attitude may not solve every problem, but it will annoy enough people to be worth the effort.

AnswerRe: 3D Graphing Package, Microsoft Mathematics Pin
Mark_Wallace24-Sep-14 12:32
Mark_Wallace24-Sep-14 12:32 
GeneralRe: 3D Graphing Package, Microsoft Mathematics Pin
Jeremy Falcon24-Sep-14 12:37
professionalJeremy Falcon24-Sep-14 12:37 
GeneralRe: 3D Graphing Package, Microsoft Mathematics Pin
Mark_Wallace24-Sep-14 12:46
Mark_Wallace24-Sep-14 12:46 
AnswerRe: 3D Graphing Package, Microsoft Mathematics Pin
RedDk24-Sep-14 13:09
RedDk24-Sep-14 13:09 
AnswerRe: 3D Graphing Package, Microsoft Mathematics Pin
runiter24-Sep-14 13:11
runiter24-Sep-14 13:11 
GeneralRe: 3D Graphing Package, Microsoft Mathematics Pin
Rage25-Sep-14 0:30
professionalRage25-Sep-14 0:30 
GeneralRe: 3D Graphing Package, Microsoft Mathematics Pin
kdmote25-Sep-14 4:40
kdmote25-Sep-14 4:40 
GeneralRe: 3D Graphing Package, Microsoft Mathematics Pin
runiter25-Sep-14 6:25
runiter25-Sep-14 6:25 
GeneralRe: 3D Graphing Package, Microsoft Mathematics Pin
C-P-User-33-Oct-14 14:33
C-P-User-33-Oct-14 14:33 
GeneralRe: 3D Graphing Package, Microsoft Mathematics Pin
runiter3-Oct-14 15:50
runiter3-Oct-14 15:50 
GeneralRe: 3D Graphing Package, Microsoft Mathematics Pin
C-P-User-33-Oct-14 19:37
C-P-User-33-Oct-14 19:37 
GeneralRe: 3D Graphing Package, Microsoft Mathematics Pin
runiter4-Oct-14 18:12
runiter4-Oct-14 18:12 
AnswerRe: 3D Graphing Package, Microsoft Mathematics Pin
Bassam Abdul-Baki24-Sep-14 13:54
professionalBassam Abdul-Baki24-Sep-14 13:54 
GeneralRe: 3D Graphing Package, Microsoft Mathematics Pin
Qmich25-Sep-14 4:04
Qmich25-Sep-14 4:04 
AnswerRe: 3D Graphing Package, Microsoft Mathematics Pin
kdmote25-Sep-14 4:38
kdmote25-Sep-14 4:38 
GeneralRe: 3D Graphing Package, Microsoft Mathematics Pin
C-P-User-33-Oct-14 14:27
C-P-User-33-Oct-14 14:27 
AnswerRe: 3D Graphing Package, Microsoft Mathematics Pin
divyamistry25-Sep-14 6:48
professionaldivyamistry25-Sep-14 6:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.