Download matlab/d4.m from Beifengdo/MATLAB-Programming: direct link, hf CLI and curl.
- Browser
- Download file 154 Bytes
-
https://huggingface.co/datasets/Beifengdo/MATLAB-Programming/resolve/main/matlab/d4.m
- Command line
-
hf download hf://datasets/Beifengdo/MATLAB-Programming/matlab/d4.m
-
curl -L -o d4.m https://huggingface.co/datasets/Beifengdo/MATLAB-Programming/resolve/main/matlab/d4.m
154 Bytes
| t=-3:0.125:3; | |
| x=sin(2.*t);y=cos(2.*t);[x,y]=meshgrid(x,y); | |
| z=x.^2+2*y.^2; | |
| mesh(x,y,z) | |
| axis([-1 - -1 - 0 3]) | |
| pause | |
| meshc(x,y,Z) | |
| pause | |
| surf(x,y,z) | |