
MATLAB
关关雎鸠儿
学而不思则罔,思而不学则die
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
基本操作与矩阵输入
MATLAB as A Calculator:cos((1+2+3+4)35)cos(\sqrt{\frac{(1+2+3+4)^{3}}{5}})cos(5(1+2+3+4)3):sin(π)+ln(tan(1))sin(\sqrt{\pi})+ln(tan(1))sin(π)+ln(tan(1)):23.5∗1.72^{3.5*1.7}23.5∗1.7:esin(10)e^...原创 2019-09-09 20:50:34 · 213 阅读 · 0 评论 -
统计
Summary Measures:A=[0 -6 -1;6 2 -16;-5 20 -10];x0=[1 1 1]';X=[];for t=0:.01:1 X=[X expm(t*A)*x0];endplot3(X(1,:),X(2,:),X(3,:),'-o');xlabel('x_1');ylabel('x_2');zalbel('x_3');grid on;ax...原创 2019-09-19 16:48:54 · 168 阅读 · 0 评论 -
线性回归方程式与线性系统
Gaussian Elimination:rref()LU Factorization:lu()原创 2019-09-19 15:31:30 · 371 阅读 · 0 评论 -
方程式求根
Symbolic Root Finding Approach:Symbolic Root Finding:solve()Exercise:>> syms x>> solve('cos(x)^2-sin(x)^2',x)Solving Multiple Equations:>> syms x y>> eq1=x-2*y-5;...原创 2019-09-15 10:48:44 · 294 阅读 · 0 评论 -
数值微积分
Differentiation:Dolyomial Differentiation:Values of Polynomials:polyval()>> a=[9,-5,3,7];>> x=-2:0.01:5;>> f=polyval(a,x);>> plot(x,f,'LineWidth',2);>> xlabel('x')...原创 2019-09-15 09:53:03 · 328 阅读 · 1 评论 -
影像处理(下)
Image Thresholding:>> I=imread('rice.png');imhist(I);Graythrsh() and im2bw():>> I=imread('rice.png');imhist(I);>> level=graythresh(I);>> bw=im2bw(I,level);>> subp...原创 2019-09-14 12:08:27 · 873 阅读 · 0 评论 -
影像处理(上)
>> I=imread('girl.jfif');>> imshow(I);Image Variabl in Workspace:whosI=imread('girl.jfif');for i=1:size(I,1) for j=1:size(I,2) if rem(i,2)==0 && rem(j,2)==0 ...原创 2019-09-14 10:13:30 · 991 阅读 · 0 评论 -
图形界面(GUI)程序设计
guide:function gui01_OpeningFcn:原创 2019-09-13 16:01:53 · 1661 阅读 · 0 评论 -
进阶绘图
Logarithm Plots:>> x=logspace(-1,1,100);>> y=x.^2;>> subplot(2,2,1);plot(x,y);>> title('Plot');>> subplot(2,2,2);>> semilogx(x,y);>> title('Semilogx')...原创 2019-09-13 10:01:11 · 171 阅读 · 0 评论 -
基础绘图
Plot from “Data”:plot():>> plot(cos(0:pi/20:2*pi));>> hold on>> plot(sin(0:pi/20:2*pi));>> hold offPlot Style:plot(cos(0:pi/20:2*pi),'or');hold onplot(sin(0:pi/20:2*...原创 2019-09-12 12:00:43 · 146 阅读 · 0 评论 -
变量与档案存取
Numeric:>> A=20A = 20>> B=int8(20)B = 20>> B=int8(A)B = 20Character:>> s1='h's1 =h>> whos Name Size Bytes Class A...原创 2019-09-11 16:25:15 · 154 阅读 · 0 评论 -
结构化程式与自定函数
for i=1:10 x=linspace(0,10,101); plot(x,sin(x+i)); print(gcf,'-deps',strcat('plot',num2str(i),'.ps'));endifa=3;if rem(a,2)==0 disp('a is even')else disp('a is odd')endswit...原创 2019-09-10 16:07:26 · 299 阅读 · 0 评论 -
吴恩达8.7:多类分类
当我们有不止两种分类时(也就是y=1,2,3...y=1,2,3...y=1,2,3...),比如以下这种情况,该怎么办?如果我们要训练一个神经网络算法来识别路人、汽车、摩托车和卡车,在输出层我们应该有4个值。例如,第一个值为1或0用于预测是否是行人,第二个值用于判断是否为汽车。输入向量xxx有三个维度,两个中间层,输出层4个神经元分别用来表示4类,也就是每一个数据在输出层都会出现[a,b,c,...转载 2019-09-26 17:53:31 · 135 阅读 · 0 评论