I-V plot

5 次查看(过去 30 天)
Viki Je
Viki Je 2018-3-6
回答: Aditya 2025-6-12
HI, I am trying to calculate I-V curve from differential conductance (di/dv on y axis) vs energy(x axis) plot. Below are my values dI/Dv = [10, 10, 10, 10]; Energy=[2,4,6, 8]; Please let me know if I can use integration in matlab and try to plot the I-V graph or if there is any easier way.

回答(1 个)

Aditya
Aditya 2025-6-12
Hi Viki,
You can calculate the I-V curve from the differential conductance (dI/dV) vs. energy plot using the cumtrapz() function in MATLAB. This function performs numerical integration to obtain the current (I) as a function of voltage (V):
% Given data
dIdV = [10, 10, 10, 10]; % Differential conductance
Energy = [2, 4, 6, 8]; % Voltage values
% Integrate to get I-V curve
I = cumtrapz(Energy, dIdV);
plot(Energy, I, '-o', 'LineWidth', 2);
xlabel('Voltage (V)');
ylabel('Current (I)');
title('I-V Curve from Differential Conductance');
Refer to the below MATLAB documentation to read more about "cumtrapz" function:
I hope this helps!

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by