Download matlab/c4.m from Beifengdo/MATLAB-Programming: direct link, hf CLI and curl.
- Browser
- Download file 184 Bytes
-
https://huggingface.co/datasets/Beifengdo/MATLAB-Programming/resolve/main/matlab/c4.m
- Command line
-
hf download hf://datasets/Beifengdo/MATLAB-Programming/matlab/c4.m
-
curl -L -o c4.m https://huggingface.co/datasets/Beifengdo/MATLAB-Programming/resolve/main/matlab/c4.m
184 Bytes
| clear | |
| x=input('������x��ֵ') | |
| if x<0 & X~=3 | |
| y=x.^2+x-6 | |
| elseif x>=0 & x<5 & x~=2 & x~=3 | |
| y=x.^2-5*x+6 | |
| else | |
| y=x.^2-x-1 | |
| end | |
| a = [-0.5,-3.0,1.0,2.0,2.5,3.0,5.0] | |
| y = a | |