3.Simulink – model
1 – qadam. Ishchi katalogni joriy katalog sifatida ornating Current Directory.
2 – qadam. m – fayl ochamiz va uni tanlangan katalokga saqlaymiz va ozgaruvchilarni kiritamiz m, v, hole_depth, hole_length, hole_start, c, k va vaqt t1 chuqurga tushish va t2 chuqurdan chiqishni hisoblaymiz.
Clear all;
m=1000; % Avtomobil ogirligi (kg)
v=20; % Avtomobil harakatining tezligi (m/s)
k=1000; % Prujinaning bikirligi (kg/s^2)
c=100; % Amortizatsiya koeffitsienti (kg/s)
hole_start=100; % Yamagacha bolgan masofa (m)
hole_lenght=1; % Yamaning uzunligi (m)
hole_depth=0.15; % Yamaning chuqurlig (m)
t1=hole_start/v; % Yamaga kirish vaqti (s)
t2= (hole_start+hole_lenght)/v; % G’ildirakning yamadan chiqish vaqti (s)
Do'stlaringiz bilan baham: |