0% found this document useful (0 votes)
43 views

HW 2

This Matlab code defines variables for voltage, resistance, inductance, and back emf, calculates current and induced emf for different forces, plots velocity versus force, and outputs a graph with the title 'Velocity vs Force'.

Uploaded by

Sirajus Salekin
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views

HW 2

This Matlab code defines variables for voltage, resistance, inductance, and back emf, calculates current and induced emf for different forces, plots velocity versus force, and outputs a graph with the title 'Velocity vs Force'.

Uploaded by

Sirajus Salekin
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Matlab Code

close all
vb = 100; r = 0.25; l = 1; B = 0.5;
F = 0:10:50;
i = F./(l*B);
eind = vb - i .* r;
vbar = eind./(l * B);
plot(F,vbar,'linewidth',2)
title('Velocity vs Force')
xlabel('Force(N)')
ylabel('Velocity(m/s)')
axis([0 50 0 200])
grid on

Velocity vs Force

200
180
160

Velocity(m/s)

140
120
100
80
60
40
20
0

10

15

20

25
30
Force(N)

35

40

45

50

You might also like