Code covered by the BSD License
-
animateCrane(sol)
animateCrane Create interactive animation of the crane
-
combinedEffect(x, y, IC50A, I...
Copyright 2011 The MathWorks, Inc.
-
createSurfaceFit(opioid, seda...
CREATESURFACEFIT(OPIOID,SEDATIVE,TETANY)
-
createfigure(X1, Y1, Z1, pres...
CREATEFIGURE(X1,Y1,Z1,S1,C1,PRESSURE1)
-
importfile(fileToRead1)
IMPORTFILE(FILETOREAD1)
-
minDosage(tFit, pFit)
This function accepts response surface models, and determines the minimal
-
motionProfile(profileType, t,...
motionProfile Compute motion profiles for the crane block
-
plotResult(sol)
plotResult Plot acceleration profile and swing angle
-
solveCraneODE(x, ptotal, r)
solveCraneODE Solve crane ODE problem
-
swingCalc(x, ptotal, r)
swingCalc Calculate integral of residual swing after completion
-
swingMagConst(x, ptotal, r, m...
Compute nonlinear inequalities at x.
-
drugModeling.m
-
swingOptim.m
-
View all files
from
Mathematical Modeling with MATLAB Products - webinar demo files
by Dan Doherty
Demo files from March 10, 2011 webinar titled 'Mathematical Modeling with MATLAB Products'
|
| importfile(fileToRead1)
|
function importfile(fileToRead1)
%IMPORTFILE(FILETOREAD1)
% Imports data from the specified file
% FILETOREAD1: file to read
% Auto-generated by MATLAB on 08-Mar-2011 12:24:52
% Copyright 2011 The MathWorks, Inc.
% Import the file
sheetName='Sheet1';
[numbers, strings, raw] = xlsread(fileToRead1, sheetName);
if ~isempty(numbers)
newData1.data = numbers;
end
if ~isempty(strings) && ~isempty(numbers)
[strRows, strCols] = size(strings);
[numRows, numCols] = size(numbers);
likelyRow = size(raw,1) - numRows;
% Break the data up into a new structure with one field per column.
if strCols == numCols && likelyRow > 0 && strRows >= likelyRow
newData1.colheaders = strings(likelyRow, :);
end
end
% Create new variables in the base workspace from those fields.
for i = 1:size(newData1.colheaders, 2)
assignin('base', genvarname(newData1.colheaders{i}), newData1.data(:,i));
end
|
|
Contact us