Download matlab/b2.m from Beifengdo/MATLAB-Programming: direct link, hf CLI and curl.
- Browser
- Download file 288 Bytes
-
https://huggingface.co/datasets/Beifengdo/MATLAB-Programming/resolve/main/matlab/b2.m
- Command line
-
hf download hf://datasets/Beifengdo/MATLAB-Programming/matlab/b2.m
-
curl -L -o b2.m https://huggingface.co/datasets/Beifengdo/MATLAB-Programming/resolve/main/matlab/b2.m
288 Bytes
| syms x1 x2 p a | |
| x1=input('������x1��ֵ') | |
| x2=input('������x2��ֵ') | |
| a=x1+x2 | |
| switch 1 | |
| case a>1 | |
| p = 0.5457*exp(-0.75*x2^2-3.75*x1^2-1.5*x1) | |
| case -1<a & a<=1 | |
| p = 0.7575*exp(-x2^2-6*x1^2) | |
| case a<=-1 | |
| p = 0.5457*exp(-0.75*x2^2-3.75*x1^2+1.5*x1) | |
| end | |