Hi!(adsbygoogle = window.adsbygoogle || []).push({});

For those of you who know how to use Matlab, I want to graph two functions f = [tex]\frac{(2+x)}{(x-2)(x+1)}[/tex] and g = [tex]\frac{1}{\sqrt{(2x^2 - 1)(x^2-1)}}[/tex]

On my instructions sheet it says; draw f and g on the same gridon a "suitable" domain.

The domain of f is all the real numbers except for 2 & -1

The domain of g = [-2,∞)\{±1}

What is a suitable domain for both functions to put on the graph AND what's the code for specifying the domain in MATLAB?

could it be: x≥-2\±1 ∩ x = R\{2,-1}?

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Graphing using MATLAB

**Physics Forums | Science Articles, Homework Help, Discussion**