1樓:匿名使用者
i did this before, so just give you the codes i wrote, try this:
%%this file creates a 3-d red heart with an equation
[x,y,z]=meshgrid(linspace(-3,3,120));
f=(x.^2+(9*y.^2).
/4+z.^2-1).^3-((9*y.
^2).*(z.^3)).
/80-(x.^2).*(z.
^3);
p=patch(isosu***ce(x,y,z,f,0));
set(p,'facecolor','r')
grid on
daspect([1 1 1])
view(3)
camlight('right')
camlight('left')
camlight('headlight')
lighting phong
xlabel('x')
ylabel('y')
zlabel('z')
title('heart of math')
2樓:匿名使用者
=-16-4=6-51=631=-1=65
如何在matlab中畫出三維曲線方程的圖。
3樓:
plot3(x1,y1,z1);
例如plot3(sin(t),cos(t),t)
4樓:5533吳
figure(gcf);plot3(x,y,z);
如何用matlab在三維空間繪製這個引數方程?
5樓:劉賀
既不是直線,也不是平面
clear all;clc;
t=0:pi/20:pi/2;
x=sin(t);y=cos(t);z=tan(t);
plot3(x,y,z);grid on;
6樓:匿名使用者
fplot3(@(t)sin(t),@(t)cos(t),@(t)tan(t),[0,pi/2]);
grid on;
用matlab作三維散點圖,matlab三維散點圖的擬合
權權 劉 先提醒你一下,你的x,y是不能哪樣定義的,要不然z就必須得是12 12階矩陣 因此,你的x要麼是1 12階矩陣,y就是1 3階矩陣 x要麼是1 3階矩陣,y就是1 12階矩陣 這樣才能符合你給出u矩陣 現在給你的一些命令 x 1 12 y 1 3 u 3.754 7.179 0.197 1...
利用matlab畫三維隱式方程,fm 1)arctan 2z k w 2k x 2 y 22 Rz) m arctan y
在matlab命令視窗輸入mupad,開啟符號計算工具箱 在新開啟的mupad視窗中如下輸入 用matlab如何繪畫三維隱函式,如下式f arctan 2z x 2 y 2 z 2 1 arctan y x z 0 在matlab命令視窗中輸入mupad,開啟符號工具箱輸入語句 假定座標範圍都是 1...
matlab三維plot3用法
1.k沒用上,可能是本來想用在rand的括號裡面的。rand n 返回乙個n n的隨機矩陣,取值是0 1.2.plot3就是要3個引數x y z,不然怎麼是3維的呢?a b c和a1 b1 c1是6個標量,畫出來是兩個3維中的點。不過引數不一樣,後面的那個plot3就是畫個3維的直線。程式一開始生成...