-
MATLAB怎样画维维安尼
t=linspace(0,2*pi,73)r=1x=r*sin(t).^2y=r*sin(t).*cos(t)z=r*cos(t)plot3(x,y,z)%维维安尼曲线hold onq=linspace(-1,1,73)[t,q]=mesh
-
NumPy(十七):Meshgrid函数【应用场景:等高线、SVC中超平面的绘制】
一、Meshgrid函数 import numpy as npimport matplotlib.pyplot as pltxnp.linspace(0, 1, 5)ynp.linspace(0, 1, 3)print("