💯مثالی از دستور subplot در متلب
x = -4:0.01:4;
y_cos = cos(x);
y_poly = 1 - x.^2./2 + x.^4./24;
subplot(2,2,1);
plot(x,y_cos,'linewidth',1.25);
noscript('Subplot 1: Cosine')
subplot(2,2,2);
plot(x,y_poly,'r','linewidth',1.25);
noscript('Subplot 2: Polynomial')
subplot(2,2,[3,4]);
plot(x,y_cos,'b',x,y_poly,'r','linewidth',1.25);
noscript('Subplot 3 and 4: Both')
x = -4:0.01:4;
y_cos = cos(x);
y_poly = 1 - x.^2./2 + x.^4./24;
subplot(2,2,1);
plot(x,y_cos,'linewidth',1.25);
noscript('Subplot 1: Cosine')
subplot(2,2,2);
plot(x,y_poly,'r','linewidth',1.25);
noscript('Subplot 2: Polynomial')
subplot(2,2,[3,4]);
plot(x,y_cos,'b',x,y_poly,'r','linewidth',1.25);
noscript('Subplot 3 and 4: Both')
💯به دست آوردن جمع دو تصویر، با دستور imadd
در متلب
clear all
close all
clc
img_1 = imread('image_1.jpg');
imshow(img_1);
img_2 = imread('image_2.jpg');
figure
imshow(img_2);
img_3 = imadd(img_1,img_2);
figure
imshow(img_3);
👇👇نتیجه خروجی دستورات👇👇
در متلب
clear all
close all
clc
img_1 = imread('image_1.jpg');
imshow(img_1);
img_2 = imread('image_2.jpg');
figure
imshow(img_2);
img_3 = imadd(img_1,img_2);
figure
imshow(img_3);
👇👇نتیجه خروجی دستورات👇👇