81.0k views
3 votes
A non-linear analog force sensor outputs the following voltages for different forces.

a. Force (N) = 10 15 20 25 30
b. Voltage (volts) | 10 | 20 | 35 | 55 | 80

(a) Use MATLAB to plot the above data points (Voltage vs. Force). (b) You can use curve fitting (using "polyfit" and "polyval", or similar commands, in MATLAB) to find an equation relating the voltage to the force. Implement a curve fitting method and use it to plot Voltage vs. Force from 10 N to 30 N in 0.1 N increments. Display these two plots in the same figure window.

1 Answer

1 vote

Answer:

see explaination

Step-by-step explanation:

Matlab code

Clc

F=[10, 15, 20, 25, 30];

V=[10, 20, 35, 55, 80];

figure(1) see attachment

subplot (2,1,1)

plot(F,V, 'o')

figure(1) see attachment

subplot (2,1,2)

plot(F,V, 'o')

Equation relating voltage to force is shown in a graph

A non-linear analog force sensor outputs the following voltages for different forces-example-1
User Terrique
by
4.5k points