رسم نمودار میله ای (bar graph) عمودی به صورت سه بعدی، با دستور bar3 در متلب
با استفاده از دستور bar3 در متلب، می توانیم یک نمودار میله ای (bar graph) عمودی سه بعدی را رسم کنیم. نمودار میله ای عمودی سه بعدی را می توانیم به شکل های مختلفی رسم کنیم که در ادامه، خود مثال های نرم افزار متلب را ذکر می کنیم.
close all
clc
load count.dat;
y = count(1:10,:); % Loading the dataset creates a variable 'count'
figure;
bar3(y,'detached');
نتیجه :
close all
clc
load count.dat;
y = count(1:10,:); % Loading the dataset creates a variable 'count'
figure;
bar3(y,0.5,'detached');
نتیجه :
close all
clc
load count.dat;
y = count(1:10,:); % Loading the dataset creates a variable 'count'
figure;
subplot(1,2,1);
bar3(y,'detached');
title('Detached');
subplot(1,2,2);
bar3(y,0.5,'detached');
title('Width = 0.5');
نتیجه :
close all
clc
load count.dat;
y = count(1:10,:); % Loading the dataset creates a variable 'count'
figure;
bar3(y,'grouped');
نتیجه :
close all
clc
load count.dat;
y = count(1:10,:); % Loading the dataset creates a variable 'count'
figure;
bar3(y,0.25,'grouped');
نتیجه :
close all
clc
load count.dat;
y = count(1:10,:); % Loading the dataset creates a variable 'count'
figure;
subplot(1,2,1);
bar3(y,'grouped');
title('Grouped');
subplot(1,2,2);
bar3(y,0.25,'grouped');
title('Width = 0.25');
نتیجه :
close all
clc
load count.dat;
y = count(1:10,:); % Loading the dataset creates a variable 'count'
figure;
bar3(y,'stacked');
نتیجه :
close all
clc
load count.dat;
y = count(1:10,:); % Loading the dataset creates a variable 'count'
figure;
bar3(y,0.25,'stacked');
نتیجه :
close all
clc
load count.dat;
y = count(1:10,:); % Loading the dataset creates a variable 'count'
figure;
subplot(1,2,1);
bar3(y,'stacked');
title('Stacked');
subplot(1,2,2);
bar3(y,0.25,'stacked');
title('Width = 0.25');