MATLAB画心形线 syms x y;a=5;h=ezplot(x^2+y^2+a*x==a*sqrt(x^2+y^2),[-10 10 -10 10]);set(h,'color','r');set(h,'linewidth',2);grid on
利用MATLAB演奏最炫民族风 sp=actxserver('SAPI.SpVoice');sp.Speak('最炫民族风');sp.Speak('作曲者');sp.Speak('二狗子');sp.Speak('演奏者');sp.Speak('Matlab');% Most shining national wind//最炫民族风 on Matlab % The Modification is from "can
利用MATLAB数端子数量 clear allclose allclc% 载入图片RGB = imread('C:\Users\mao\Desktop\1.jpg');I = rgb2gray(RGB);se = strel('disk',50);I2 = imbothat(I,se); % 底帽变换,去除不均匀背景figure,imshow(I2)I3 = imadjust(I2); % 这一步可有
利用MATLAB演奏卡农 fs = 44100; % sample ratedt = 1/fs;T16 = 0.125;t16 = [0:dt:T16];[temp k] = size(t16);t4 = linspace(0,4*T16,4*k);t8 = linspace(0,2*T16,2*k);[temp i] = size(t4);[temp j] = size(t8);% Modif
利用MATLAB数米粒数量 I = imread('rice.png');imshow(I);background = imopen(I,strel('disk',15));figuresurf(double(background(1:8:end,1:8:end))),zlim([0 255]);set(gca,'ydir','reverse');I2 = I - background;imshow(I2)J