How to seperate positve and negative x axis
4 views (last 30 days)
I have a function and I want to examine the curve of the function only for positive x values.
Does anyone have an ideo how i could do that?
I attached an image of how my function looks.
Star Strider on 6 Mar 2020
F = openfig('Bild_versch.fig');
Lines = findobj(F, 'Type','Line');
X = Lines.XData;
Y = Lines.YData;
LM = X > 0; % Logical Mask: Only Positive ‘X’ Values
xlim([0 0.005]) % Optional
Note that since 0 has no sign, it is not considered to be either positive or negative. To include it, change the ‘LM’ assignment to:
LM = X >= 0; % Logical Mask: Only Non-Negative ‘X’ Values