Question

Check the file: Questions.pdf

Solution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

PlanarPoints = ...
[[0.96; 1.05; 0] [1.00; 8.02; 0] [8.07; 1.99; 0] ...
   [7.95; 7.95; 0] [5.00; 2.93; 0]];

SpatialPoints = ...
[[3.75; 3.75; 13.75] [3.60; 6.05; 12.98] [7.14; 2.86; 5.71] ...
   [7.73; 7.73; 1.82] [5.00; 4.05; 10.48]];
figure()
for i=1:5
    j=3*(i-1);
%    line([PlanarPoints(j+1);SpatialPoints(

    X(i)=PlanarPoints(j+1);
    Y(i)=PlanarPoints(j+2);
    Z(i)=PlanarPoints(j+3);
    Xsp(i)=SpatialPoints(j+1);
    Ysp(i)=SpatialPoints(j+2);
    Zsp(i)=SpatialPoints(j+3);
    %line([X(i);Xsp(i)],[Y(i);Ysp(i)],[Z(i);Zsp(i)]);
   
    t=0:1:20;
    x=X(i)+(Xsp(i)-X(i))*t;
    y=Y(i)+(Ysp(i)-Y(i))*t;
    z=Z(i)+(Zsp(i)-Z(i))*t;
    axis([0 10 0 10 0 25])
    %plot3([X(i),Xsp(i)], [Y(i), Ysp(i)], [Z(i), Zsp(i)])
    plot3(x,y,z)
    hold on
   xlabel('x')
   ylabel('y')
   zlabel('z')
end...

This is only a preview of the solution. Please use the purchase button to see the entire solution

Related Homework Solutions

Hemisphere Problem in Matlab
Homework Solution
$18.00
Hemisphere
Mathematics
Matlab
Computing
Geometry
Figures
Volumes
Radius
Dimensions
Input
Output
Statements
VariablesTables
Scripts
Algorithms
Random X and Y
Homework Solution
$10.00
Mathematics
Matlab
Random
X
Y
Generate
Rules
Sum
Random
Program
MATLAB Exercises
Homework Solution
$23.00
Mathematics
MATLAB
Exercises
Command
Plot
Equation
Function
Graph
Equations in Matlab
Homework Solution
$80.00
Mathematics
Computer Science
Matlab
Nonlinear Equations
Newton-Raphson Method
Termination Conditions
Gaussian Elimination
Built-In Commands
Variables
Statements
Cos
Tanh
M-Files
Arbitrary Systems
The Mass-Spring System
Homework Solution
$60.00
Matlab
Mass
Initial Value
Spring
Motion
Harmonic
Oscillation
Mass-Spring System
ODE
Damping
Ode45
Equilibrium
Get help from a qualified tutor
Live Chats