Help CenterHelp Center
Reciprocal square root
Y = rsqrt(X)
example
Y = rsqrt(X) returns the reciprocal square root of each element of the half-precision input array, X.
Y
X
Note
This function supports only half-precision inputs.
collapse all
Create a matrix of half-precision values.
X = half(magic(3))
X = 3x3 half matrix 8 1 6 3 5 7 4 9 2
Compute the reciprocal square root of each element of X.
y = rsqrt(X)
y = 3x3 half matrix 0.3535 1.0000 0.4082 0.5771 0.4473 0.3779 0.5000 0.3333 0.7070
Input array, specified as a half-precision numeric scalar, vector, matrix, or multidimensional array
Data Types: Half
Half
Introduced in R2018b
half
이 예제의 수정된 버전이 있습니다. 사용자가 편집한 내용을 반영하여 이 예제를 여시겠습니까?
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office