# MATLAB plots

1. Aug 31, 2009

### airelemental135

I want to create a plot of a given function for all x values between negative infinite to negative R (for some given R value). How do I create an array for x so that my plot will include all the x values?

2. Aug 31, 2009

### shoehorn

You can't plot on a range $(-\infty,-R)$ since Matlab won't accept Inf or NaN as valid points in the domain of a plot.

Of course, you can overcome this simply by compactifying the domain of your function to a finite domain, and then plotting the rescaled function over the new domain.