-
-
Save klemenzarn/b64c813d12e780d5b369 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vrednost_1a=get(handles.edit1, 'String');%Tukaj sem rezerviral prostor | |
vrednost_1b=get(handles.edit8, 'String'); | |
vrednost_1c=get(handles.edit9, 'String'); | |
vrednost_2=get(handles.edit2, 'String'); | |
vrednost_3=get(handles.edit3, 'String'); | |
vrednost_4=get(handles.edit4, 'String'); | |
vrednost_5=get(handles.edit5, 'String'); | |
vrednost_6=get(handles.edit6, 'String'); | |
vrednost_7=get(handles.edit7, 'String'); | |
a1=str2double(vrednost_1a); %pretvorili znak v število | |
a2=str2double(vrednost_1b); | |
a3=str2double(vrednost_1c); | |
nk=str2double(vrednost_2); | |
f=str2double(vrednost_3); | |
n=str2double(vrednost_4); | |
kc=str2double(vrednost_5); | |
z=str2double(vrednost_6); | |
vc=str2double(vrednost_7); | |
v = [a1,a2,a3] | |
for a=1:3, | |
a = v(a) | |
r=(pi/180)*nk; %izraćunali iz stopinj v radiane | |
b=a/sin(r); % izračun širine odrezka | |
h=f*sin(r); %debelina odrezka | |
rezultat1=b*kc*h^(1-z); %glavna rezalna sila | |
rezultat2=rezultat1*vc/n; %minimalna moč stroja | |
set(handles.text1, 'String', rezultat1); %izpis obeh rezultatov | |
set(handles.text2, 'String', rezultat2); | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment