dzafar
Member level 4
Hello,
I am new to MATLAB. I am trying to plot a 2D graph showing total charge (in pC) vs. Voltage (in V) ranging from 1 to 10V. Below is my attempt which gives an empty window.
Can someone please help.
Thanks
I am new to MATLAB. I am trying to plot a 2D graph showing total charge (in pC) vs. Voltage (in V) ranging from 1 to 10V. Below is my attempt which gives an empty window.
Code:
q_tot = 7.062*10^(-12);
Voltage = [1:1:10];
figure(1);
plot(q_tot, Voltage);
title('Q vs. V');
xlabel('x[m]');
ylabel('y[m]');
grid on;
Can someone please help.
Thanks
Last edited: