Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Matkab ,draw line in 3d

Posted on 2013-02-01
2
Medium Priority
?
514 Views
Last Modified: 2016-03-02
I need to draw a line in 3d using Matlab ,the reason for this is that I need to draw a model for
a line penetrating a surface ,for my students.

I just need to demonstrate to them how to find the angle between a line and a surface.
So how to do this using mesh() and meshgrid() ?

THNX
0
Comment
Question by:aboo_s
2 Comments
 
LVL 15

Accepted Solution

by:
yuk99 earned 2000 total points
ID: 38843389
Use plot3 function:
If you need a line together with surface put 'hold on' before print3 statement and 'hold off' after that not to start a new figure.
Alternatively you can use line function with X,Y,Z vectors as parameters.
0
 
LVL 10

Author Closing Comment

by:aboo_s
ID: 38862555
Thanks it worked!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Navigation is an important part of web design from a usability perspective. But it is often a pain when it comes to a developer’s perspective. By navigation, it often means menuing. This is less theory and more practical of how to get a specific gro…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question