5.0

5.0 | 1 rating Rate this file 4 Downloads (last 30 days) File Size: 5.19 KB File ID: #23825
image thumbnail

Tan_plane: Tangent Plane Expression & Display

by Gustavo Morales

 

18 Apr 2009 (Updated 05 Sep 2009)

Calculates the tangent plane of a Surface at point Xo and plots the surface, plane and Xo!

| Watch this File

File Information
Description

What it does?: You give it a surface (explicit, parametric or implicit form) and a point on it and you'll get the equation of the tangent plane (in the same form as the surface is) at that point and besides you'll see the surface, the plane and the tangential point Xo.
See <help tan_plane> for usage.
Useful for educational purposes or just for fun! ;)

Enjoy it ...!

Required Products Symbolic Math Toolbox
MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
21 Dec 2009 Felipe G. Nievinski  
21 Dec 2009 Felipe G. Nievinski

You might wish to consider replacing l.37,
    %fo = subs(f, X, Xo); % f evaluated at Xo
by
    fo = subs(subs(f, X(1),Xo(1)), X(2),Xo(2));
and l.46,
    dF = subs(jacobian(f, X), X, Xo);
by
    dF = subs(subs(jacobian(f, X), X(1),Xo(1)), X(2),Xo(2));
With these few changes tan_plane would work with older versions of Matlab (e.g., R2007b).

12 Feb 2010 Gustavo Morales

Thanks Felipe!!! Lets see what Matlab 2010 bring us!!!

17 Nov 2011 Robert

hi guy. when i launch your code matlab display "error in tan_plane at 27 switch type".

Please login to add a comment or rating.
Updates
05 May 2009

-Now plots the tangential point Xo
-Some bugs intercepted
-Code simplified

05 Sep 2009

code simplified

Tag Activity for this File
Tag Applied By Date/Time
education Gustavo Morales 20 Apr 2009 12:06:28
mathematics Gustavo Morales 20 Apr 2009 12:06:28
especialized plots Gustavo Morales 20 Apr 2009 12:06:28
implicit plot Gustavo Morales 20 Apr 2009 12:06:28
parametric plot Gustavo Morales 20 Apr 2009 12:06:28
symbolic calculus Gustavo Morales 20 Apr 2009 12:06:28

Contact us at files@mathworks.com