The functions’
domains and ranges include complex values. All angles are in radians.
Y = acsc(X) returns the inverse cosecant (arccosecant) for each element of X.
Y = acsch(X) returns the inverse hyperbolic cosecant for each element of X.
Examples
Graph the inverse cosecant over the domains –10 ≤ x < –1 and 1 < x ≤ 10, and the inverse hyperbolic cosecant over the domains –20 ≤ x ≤ –1 and 1 ≤ x ≤ 20.
x1 = -10:0.01:-1.01; x2 = 1.01:0.01:10;
plot(x1,acsc(x1),x2,acsc(x2))
x1 = -20:0.01:-1; x2 = 1:0.01:20;
plot(x1,acsch(x1),x2,acsch(x2))
1.5
1
0.8
1
0.6
0.4
0.5
0.2
0
0
y=acsc(x)
y=acsch(x) -0.2
-0.5
-0.4
-0.6
-1
-0.8
-1.5
-1
-10
-8
-6
-4
-2
0
2
4
6
8
10
-20
-15
-10
-5
0
5
10
15
20
x1,x2
x1,x2
Algorithm
acsc and acsch use these algorithms.
1
csc–1 ( z)
–
= sin 1 --
z
1
csch–1 ( z)
–
= sinh 1 --
z
2-32
acsc, acsch
See Also
csc, csch
2-33
actxcontrol
2actxcontrol
Purpose
Create an ActiveX control in a figure window.
Syntax
h =actxcontrol (progid [, position [, handle ...
[,callback |{event1 eventhandler1; ...
event2 eventhandler2; …}]]])
Arguments
progid
String that is the name of the control to create. The control vendor provides this
string.
position
Position vector containing the x and y location and the xsize and ysize of the
control, expressed in pixel units as [x y xsize ysize]. Defaults to [20 20 60
60].
handle
Handle Graphics handle of the figure window in which the control is to be
created. If the control should be invisible, use the handle of an invisible figure
window. Defaults to gcf.
callback
Name of an M-function that accepts a variable number of arguments. This
function will be called whenever the control triggers an event. Each argument
is converted to a MATLAB string; the first argument is always a string that
represents the numerical value of the event that was triggered. These
numerical values are defined by the control. (See the section, “Writing Event
Handlers” in MATLAB External Interfaces, for more information on handling
control events.)
event
Triggered event specified by either number or name.
eventhandler
Name of an M-function that accepts a variable number of arguments. This
function will be called whenever the control triggers the event associated with
it. The first argument is the activex object, the second number represents the
numerical value of the event that was triggered. Note that the second number
is not converted to a string as is the case in the “callback” M-file style. These
values are defined by the control. See “Writing Event Handlers” in MATLAB
External Interfaces for more information on handling control events.
2-34
actxcontrol
Note There are two ways to handle events. You can create a single callback
or you can specify a cell array that contains pairs of events and event
handlers. In the cell array format, specify events by either number or name.
Each control defines event numbers and names. There is no limit to the
number of pairs that can be specified in the cell array. Although using the
single callback method may be easier in some cases, using the cell array
technique creates more efficient code that results in better performance.
Returns
A MATLAB activex object that represents the default interface for this control
or server. Use the get, set, invoke, propedit, release, and delete methods
on this object. A MATLAB error will be generated if this call fails.
Description
Create an ActiveX control at a particular location within a figure window. If the
parent figure window is invisible, the control will be invisible. The returned
MATLAB activex object represents the default interface for the control. This
interface must be released through a call to release when it is no longer