Haven't explored past the variables file yet, but psyched to explore this work. Will keep you updated on what I find/think.
ps - to your question gardner... I am a Naval Architect. Engineer schooled in mechanical, structural, electrical, and marine engineering.
MatLab ski calculation
Moderators: Head Monkey, kelvin, bigKam, skidesmond, chrismp
Running into an error in the 3d plot of the ski? Line 37...
Error in ==> plotski3D at 37
ThreeD2 = [xplotzero; yplot; hp(2:end-1)];
Maybe I made a mistake in the profile? It seems right to me though...
%% Profile variables:
%------------------------------------------------------------------------
H = [3 3 7 7 3 3 ];
pos = [0 170 470 1270 1570 1740];
It's clearly something in my variables file though because I can run it with the one that was in the folder to begin with...
Error in ==> plotski3D at 37
ThreeD2 = [xplotzero; yplot; hp(2:end-1)];
Maybe I made a mistake in the profile? It seems right to me though...
%% Profile variables:
%------------------------------------------------------------------------
H = [3 3 7 7 3 3 ];
pos = [0 170 470 1270 1570 1740];
It's clearly something in my variables file though because I can run it with the one that was in the folder to begin with...
Aha, found the problem...
-------------------------------------------------------------------------
In the file skivariables.m change:
line 9 -- L = 1740; % total ski length (mm)
and the use profile variables:
H = [3 3 7 7 3 3];
pos = [0 170 470 1270 1570 L];
and
In the file plotski3D.m change line 37
from:
ThreeD2 = [xplotzero; yplot; hp(2:end-1)];
to:
ThreeD2 = [xplotzero; yplot; hp];
-------------------------------------------------------------------------
Let me know if this works for you!
Sorry for the poor coding... never found some spare time to rewrite it...
Cheers, Buuk
-------------------------------------------------------------------------
In the file skivariables.m change:
line 9 -- L = 1740; % total ski length (mm)
and the use profile variables:
H = [3 3 7 7 3 3];
pos = [0 170 470 1270 1570 L];
and
In the file plotski3D.m change line 37
from:
ThreeD2 = [xplotzero; yplot; hp(2:end-1)];
to:
ThreeD2 = [xplotzero; yplot; hp];
-------------------------------------------------------------------------
Let me know if this works for you!
Sorry for the poor coding... never found some spare time to rewrite it...
Cheers, Buuk
Make things as simple as possible, but not too simple