Ngày tải lên :
02/04/2014, 15:46
...
22
Cao V¨n ChÝnh_B1K52
Tổng hợp code các bài thực hành Matlab
Bai 1
clc
x=-2:0.01:2
y=exp(-0.3.*x.^2- 0.5.*x +1).*cos(20.*x)
subplot(2,1,1)% lenh subplot nay chia man
%hinh do thi theo 2 hang 1 ...
subplot(2,2,1);mesh(x,y,z);% do thi mesh
title('mesh')% gan chu thich mesh
subplot(2,2,2);surf(x,y,z)% do thi surf
title('surf')
subplot(2,2,3);contour(x,y,z)
title('contour')%do thi duong ...
figure(2);
subplot(2,1,1);
ezplot(y1b,[0 1]);grid on;hold on
ezplot(y2b,[0 1]);
Tổng hợp code các đề thi Matlab
De 1:
clc;close all;clear all
%cau a
%luoi 41 chia deu
[x,y]=meshgrid(linspace(-2,2,41));...