رسم نمودار میله ای (bar graph) افقی به صورت سه بعدی، با دستور bar3h در متلب
با استفاده از دستور bar3h در متلب، می توانیم یک نمودار میله ای (bar graph) افقی سه بعدی را رسم کنیم. نمودار میله ای افقی سه بعدی را می توانیم به شکل های مختلفی رسم کنیم که در ادامه، خود مثال های نرم افزار متلب را ذکر می کنیم.
clear all
close all
clc
load count.dat;
y = count(1:10,:); % Loading the dataset creates a variable 'count'
figure;
bar3h(y,'detached');
close all
clc
load count.dat;
y = count(1:10,:); % Loading the dataset creates a variable 'count'
figure;
bar3h(y,'detached');
نتیجه :

clear all
close all
clc
load count.dat;
y = count(1:10,:); % Loading the dataset creates a variable 'count'
figure;
bar3h(y,0.5,'detached');
close all
clc
load count.dat;
y = count(1:10,:); % Loading the dataset creates a variable 'count'
figure;
bar3h(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);
bar3h(y,'detached');
title('Detached');
subplot(1,2,2);
bar3h(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);
bar3h(y,'detached');
title('Detached');
subplot(1,2,2);
bar3h(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;
bar3h(y,'grouped');
close all
clc
load count.dat;
y = count(1:10,:); % Loading the dataset creates a variable 'count'
figure;
bar3h(y,'grouped');
نتیجه :

clear all
close all
clc
load count.dat;
y = count(1:10,:); % Loading the dataset creates a variable 'count'
figure;
bar3h(y,0.25,'grouped');
close all
clc
load count.dat;
y = count(1:10,:); % Loading the dataset creates a variable 'count'
figure;
bar3h(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);
bar3h(y,'grouped');
title('Grouped');
subplot(1,2,2);
bar3h(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);
bar3h(y,'grouped');
title('Grouped');
subplot(1,2,2);
bar3h(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;
bar3h(y,'stacked');
close all
clc
load count.dat;
y = count(1:10,:); % Loading the dataset creates a variable 'count'
figure;
bar3h(y,'stacked');
نتیجه :

clear all
close all
clc
load count.dat;
y = count(1:10,:); % Loading the dataset creates a variable 'count'
figure;
bar3h(y,0.25,'stacked');
close all
clc
load count.dat;
y = count(1:10,:); % Loading the dataset creates a variable 'count'
figure;
bar3h(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);
bar3h(y,'stacked');
title('Stacked');
subplot(1,2,2);
bar3h(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);
bar3h(y,'stacked');
title('Stacked');
subplot(1,2,2);
bar3h(y,0.25,'stacked');
title('Width = 0.25');
نتیجه :

نظرات 0 0 0