رسم نمودار میله ای (bar graph) عمودی به صورت سه بعدی، با دستور bar3 در متلب
با استفاده از دستور bar3 در متلب، می توانیم یک نمودار میله ای (bar graph) عمودی سه بعدی را رسم کنیم. نمودار میله ای عمودی سه بعدی را می توانیم به شکل های مختلفی رسم کنیم که در ادامه، خود مثال های نرم افزار متلب را ذکر می کنیم.
clear all
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,'detached');
نتیجه :
clear all
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;
bar3(y,0.5,'detached');
نتیجه :
clear all
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;
subplot(1,2,1);
bar3(y,'detached');
title('Detached');
subplot(1,2,2);
bar3(y,0.5,'detached');
title('Width = 0.5');
نتیجه :
clear all
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,'grouped');
نتیجه :
clear all
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;
bar3(y,0.25,'grouped');
نتیجه :
clear all
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;
subplot(1,2,1);
bar3(y,'grouped');
title('Grouped');
subplot(1,2,2);
bar3(y,0.25,'grouped');
title('Width = 0.25');
نتیجه :
clear all
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,'stacked');
نتیجه :
clear all
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;
bar3(y,0.25,'stacked');
نتیجه :
clear all
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');
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');
نتیجه :
نظرات 0 0 0