How do I plot a point on a spherical system?
조회 수: 13 (최근 30일)
이전 댓글 표시
This is my instructor's instructions:
Problem 8 ‐ MATLAB Write a MATLAB script to generate a plot of the vector A= (8, pi/3, pi/6) in spherical coordinate system. Fully label and title your plot including a grid.
This is what I have so far and I know it isn't right. Help!
clear all; %clear variables
clc; %clear previous window
syms r t rho
pi=3.1415;
r=8;
t=(pi/3);
rho=(pi/6);
z= cos(rho)*(r);
y=r*(sin(rho))*(cos(t));
x=r*(sin(rho))*(cos(t));
figure
[x,y,z]=sphere();
surf(x, y, z)
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Calculus에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!