Hi
I'm currently trying to plot data exported from LTspice. However, when i use the "plot" function MATLAB adds the y=0 line as part of the plot. This does not happen when i use scatter and excatly the same settings. Here is a picture of the problem, and I've attached my code as well.
Thanks in advance!
data=csvread('deptesttest.csv',1,0);dataus=data(:,1).*1e6;% yyaxis left
plot(dataus(:,1),data(:,2).*1e-3,'--or','LineWidth',3);set(gca,'FontSize',25);%axis font size
xlabel('time [\muS]','FontSize',25)ylabel('Switching losses[W]','FontSize',25)title('Current and power through switch during DP testing','FontSize',30)axis ( [ 75.5 75.7 -10 140])% yyaxis right
% plot(dataus(:,1),data(:,4),'LineWidth',3);
% legend('Losses MOSFET','Current MOSFET','FontSize',25)
% ylabel('Drain current MOSFET [A]','FontSize',25)
% axis ( [ 75 76 -10 140])
Best Answer