کانال تخصصی متلب – Telegram
کانال تخصصی متلب
6.92K subscribers
263 photos
112 videos
1.03K files
163 links
👈 فایل‌های آموزشی متلب در حوزه:
مخابرات،کنترل،پردازش سیگنال،عمران،هوافضا، ریاضی،فیزیک

کانال۷۵۰۰ نفره متلب:
@Matlab_Communication

گروه ۶۵۰۰ نفره متلب:
t.me/joinchat/EHEbrEA6SZ1bAjLdUj7bwA

تاسیس۹۵/۱۱/۱۱
Download Telegram
💯جدا کردن بخش‌های نمودار دایره ای (نمای انفجاری)

x = [13 15 61 9 2];
explode = [0 1 0 1 0];
labels = {'NEW ENERGY','HYDRO','COAL', 'NATURAL GAS', 'NUCLEAR' };
pie(x,explode,labels)
💯رسم نمودارهای دایره ای در کنارهم

x = [89 14 19 87 88];
subplot(1,2,1);
pie(x,{'Coal','Other','Nuclear','Petro','Gas'})
noscript('1995');

y = [92 27 30 58 90];
subplot(1,2,2);
pie(y,{'Coal','Other','Nuclear','Petro','Gas'})
noscript('2005');
💯افزودن فهرست علائم (Legend) به نمودار دایره‌ای

x = [4 5 1 7];
pie(x)
noscript('Pie Chart in Matlab');
leg = {'part1','part2','part3','part4'};
legend(leg,'Location','southoutside','Orientation','horizontal')
💯رسم نمودار دایره ای سه بعدی در متلب

x = [12 48 31 27];
explode = [0 0 1 0];
pie3(x,explode)
noscript('3d-Pie Chart in Matlab');
leg = {'part1','part2','part3','part4'};
legend(leg,'Location','southoutside','Orientation','horizontal')
💯ترسیم نمودار قطبی در متلب

theta = 0:0.01:2*pi;
r = sin(2*theta).*cos(2*theta);
polarplot(theta,r)
💯افزودن عنوان به نمودار قطبی

theta = 0:0.01:2*pi;
r = sin(2*theta);
polarplot(theta,r,'linewidth',1.2)
noscript('polar diagram')
💯دستور hold on در متلب

x = 0:0.01:2*pi;
y1 = sin(x);
y2 = sin(2*x);
plot(x,y1)
hold on
plot(x,y2)


x = 0:0.01:2*pi;
y1 = sin(x);
y2 = sin(2*x);
plot(x,y1,x,y2)
💯مثالی از دستور 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')
💯 تابع yyaxis


x = linspace(0,10);
y = sin(2*x);
z = sin(3*x).*exp(0.5*x);

yyaxis left
plot(x,y)

yyaxis right
plot(x,z)
x = linspace(0,10);
yl1 = sin(x);
yl2 = sin(x/2);

yyaxis left
plot(x,yl1,'linewidth',1.1)
hold on
plot(x,yl2,'linewidth',1.1)

yr1 = x;
yr2 = x.^2;

yyaxis right
plot(x,yr1,'linewidth',1.1)
plot(x,yr2,'linewidth',1.1)
💯رسم دو محور در نمودار با استفاده از مقیاس لگاریتمی

x = logspace(0,3);
y = exp(x);
loglog(x,y,'-p')
grid on
💯به دست آوردن جمع دو تصویر، با دستور 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);

👇👇نتیجه خروجی دستورات👇👇
تصویر حاصل از اجرای دستورات پست قبلی