Code covered by the BSD License  

Highlights from
Mathematical Modeling with MATLAB Products - webinar demo files

image thumbnail

Mathematical Modeling with MATLAB Products - webinar demo files

by

 

Demo files from March 10, 2011 webinar titled 'Mathematical Modeling with MATLAB Products'

createfigure(X1, Y1, Z1, pressure1)
function createfigure(X1, Y1, Z1, pressure1)
%CREATEFIGURE(X1,Y1,Z1,S1,C1,PRESSURE1)
%  X1:  scatter3 x
%  Y1:  scatter3 y
%  Z1:  scatter3 z
%  S1:  scatter3 s
%  C1:  scatter3 c
%  PRESSURE1:  scatter3 z

%  Auto-generated by MATLAB on 08-Mar-2011 12:28:51
%  Copyright 2011 The MathWorks, Inc.

% Create figure
figure1 = figure;

% Create subplot
subplot1 = subplot(2,1,1,'Parent',figure1);
view(subplot1,[-31.5 30]);
grid(subplot1,'on');
hold(subplot1,'all');

% Create scatter3
scatter3(X1,Y1,Z1,'MarkerFaceColor',[1 0 0],'Parent',subplot1,...
    'DisplayName','opioid,sedative,tetany');

% Create title
title('Tetany');

% Create subplot
subplot2 = subplot(2,1,2,'Parent',figure1);
view(subplot2,[-37.5 30]);
grid(subplot2,'on');
hold(subplot2,'all');

% Create title
title('Pressure');

% Create xlabel
xlabel('opioid');

% Create ylabel
ylabel('sedative');

% Create scatter3
scatter3(X1,Y1,pressure1,'MarkerFaceColor',[0 1 0],'Parent',subplot2,...
    'DisplayName','opioid');

Contact us