fplot('asin(sin(x))',[-4*pi,4*pi])
grid on
axis equal
fplot('asin(x)',[-4*pi,4*pi])
Warning: Imaginary parts of complex X and/or Y arguments ignored
> In fplot at 153
fplot('asin(x)',[-pi/2,pi/2])
Warning: Imaginary parts of complex X and/or Y arguments ignored
> In fplot at 153
fplot('asin(x)',[-1,1])
x=linspace(-1,1,10)
x =
Columns 1 through 8
-1.0000 -0.7778 -0.5556 -0.3333 -0.1111 0.1111 0.3333 0.5556
Columns 9 through 10
0.7778 1.0000
x=linspace(-1,1,21)
x =
Columns 1 through 8
-1.0000 -0.9000 -0.8000 -0.7000 -0.6000 -0.5000 -0.4000 -0.3000
Columns 9 through 16
-0.2000 -0.1000 0 0.1000 0.2000 0.3000 0.4000 0.5000
Columns 17 through 21
0.6000 0.7000 0.8000 0.9000 1.0000
y=asin(x)
y =
Columns 1 through 8
-1.5708 -1.1198 -0.9273 -0.7754 -0.6435 -0.5236 -0.4115 -0.3047
Columns 9 through 16
-0.2014 -0.1002 0 0.1002 0.2014 0.3047 0.4115 0.5236
Columns 17 through 21
0.6435 0.7754 0.9273 1.1198 1.5708
plot(x,y)
grid on
fplot('(1/2)^abs(x)',[-pi/2,pi/2])
fplot('log(abs(x))',[-pi/2,pi/2])
grid on
fplot('abs(log(x))',[-pi/2,pi/2])
fplot('abs(log(x))',[eps,pi])
fplot('(2*asin(x/3))',[-pi,pi])
Warning: Imaginary parts of complex X and/or Y arguments ignored
> In fplot at 153
grid on
fplot('(2*asin(x/3)),sin(x)',[-pi,pi])
??? Error using ==> inlineeval
Error in inline expression ==> (2*asin(x/3)),sin(x)
??? Error: Unexpected MATLAB expression.
Error in ==> inline.feval at 34
INLINE_OUT_ = inlineeval(INLINE_INPUTS_, INLINE_OBJ_.inputExpr, INLINE_OBJ_.expr);
Error in ==> fplot at 102
x = xmin; y = feval(fun,x,args{4:end});
fplot('[(2*asin(x/3)),sin(x)]',[-pi,pi])
Warning: Imaginary parts of complex X and/or Y arguments ignored
> In fplot at 153
grid on
fplot('atg(x+1)',[-pi,pi])
??? Error using ==> inlineeval
Error in inline expression ==> atg(x+1)
??? Error using ==> eval
Undefined command/function 'atg'.
Error in ==> inline.feval at 34
INLINE_OUT_ = inlineeval(INLINE_INPUTS_, INLINE_OBJ_.inputExpr, INLINE_OBJ_.expr);
Error in ==> fplot at 102
x = xmin; y = feval(fun,x,args{4:end});
fplot('atan(x+1)',[-pi,pi])
grid on
fplot('(1/(1-x))',[-pi,pi])
diary off