x = [1 1 2 2 4 4 8 8 16 16 32 32];
y = [1 10 1 10 1 10 1 10 1 10 1 10];
z = [13.76627727 13.95465227 20.24310909 22.28234455 35.85894205 35.3311542 72.82818466 70.00584869 145.2048668 145.0108931 311.9080548 409.1663403];
w = [15.46489546 12.63562545 17.56584091 17.30165841 33.52070795 31.67028443 64.59995795 61.56679716 120.2432642 128.3052925 311.6554271 375.4131944];

% Combine x, y, and z into a matrix
data1 = [x', y', z'];
data2 = [x', y', w'];

% Create a single subplot with two views
figure;
subplot(1,2,1);
bar3(data1);
xlabel('X');
ylabel('Y');
zlabel('Z');
title('Data Set 1');

subplot(1,2,2);
bar3(data2);
xlabel('X');
ylabel('Y');
zlabel('W');
title('Data Set 2');
view(90, 0); % Change view to show both data sets in the same figure
