Voltage find equation diagramm

4 views (last 30 days)
Tt ka
Tt ka on 7 Nov 2023
Edited: Tt ka on 22 Nov 2023
Hello everyone,
Below you could find a code that I have used to understand my problem better.
U_max = max(Voltage);
Norm = Voltage/U_max;
plot(Norm,Time,'b.-';
ns = Voltage/U_max;
plot(ns,Time,'b.-';
I would be happy for any ideas.
Kind regards,
Alexander

Accepted Answer

Star Strider
Star Strider on 7 Nov 2023
Perhaps this —
imshow(imread('LI.jpg'))
T1 = readtable('Versuch.txt');
T1.Properties.VariableNames = {'Time','Voltage'}
T1 = 10000×2 table
Time Voltage _________ _______ -1e-05 -50003 -9.99e-06 -50003 -9.98e-06 -50003 -9.97e-06 -50003 -9.96e-06 -50003 -9.95e-06 -50003 -9.94e-06 -50003 -9.93e-06 -50003 -9.92e-06 -50003 -9.91e-06 -50003 -9.9e-06 -50003 -9.89e-06 -50003 -9.88e-06 -50003 -9.87e-06 -50003 -9.86e-06 -50003 -9.85e-06 -50003
[V1,V2] = bounds(T1.Voltage);
Vnorm = (T1.Voltage-V1) / (V2-V1);
figure
tiledlayout(2,1)
nexttile
plot(T1.Time, T1.Voltage, '.-b')
grid
xlabel('Time')
ylabel('Voltage')
title('Original')
nexttile
plot(T1.Time, Vnorm, '.-r')
xlabel('Time')
ylabel('Voltage')
title('Normalised')
grid
.
  25 Comments
Tt ka
Tt ka on 21 Nov 2023
thanks a million, Star Strider
Star Strider
Star Strider on 21 Nov 2023
As always, my pleasure!

Sign in to comment.

More Answers (0)

Categories

Find more on Line Plots in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!