MATLAB: Placing a tangential line at point of inflection for a data set.

inflectioninflexioninterceptMATLABslope

I have a graph where I need to find a point with the maximum slope and draw a tangient line there that crosses the x-axis. The value I want should be around 0.6.
I'm using a data set from excel.
% PLOTTING Id vs Vd
clear all;
clc;
%Plotting Id vs Vg for Long Channel @ Vd = 0.2040816
Vg = xlsread('W1umL3um.xlsx','For Vt','D5:D11')
VtId = xlsread('W1umL3um.xlsx','For Vt','E5:E11')
figure('Name','Graph to get Vt')
IdVg = plot(Vg, VtId)
xlabel('Gate Voltage (V)');
ylabel('Drain Current (A)');
legend({'Vd = 0.2040816V'},'Location','northwest')
hold all;
Image 1.jpg

Best Answer

How to draw tangent line at infleciton point? can provide you with one approach.