% 设置时间范围和采样频率
t 0:0.01:2; % 时间从0到2秒,步长为0.01秒% 定义频率 f 和角频率 theta
f 5; % 频率为5Hz
theta 2 * pi * f * t;% 初始化输出向量
y zeros(size(t));% 根据给定的公式计算 y
for k 1:fy y (-1)^(k-1)*(2 /(k * pi)) * sin(k * the…
three.js实现地球 外部扫描的着色器
https://threehub.cn/#/codeMirror?navigationThreeJS&classifyshader&idearthScan
import * as THREE from three
import { OrbitControls } from three/examples/jsm/controls/OrbitControls.js
import { GUI } from three/ex…