DocumentationHelp CenterDocumentation
Unary plus
C = +A
C = uplus(A)
example
C = +A returns array A and stores it in C.
A
C
C = uplus(A) is an alternate way to execute +A, but is rarely used. It enables operator overloading for classes.
+A
collapse all
Create a 2-by-2 matrix, A.
A = [1 -3; -2 4]
A = 2×2 1 -3 -2 4
Use unary plus on A.
C = 2×2 1 -3 -2 4
C and A are the same.
Input array, specified as a scalar, vector, matrix, or multidimensional array.
Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | logical | char | duration | calendarDuration Complex Number Support: Yes
single
double
int8
int16
int32
int64
uint8
uint16
uint32
uint64
logical
char
duration
calendarDuration
This function fully supports tall arrays. For more information, see Tall Arrays.
Inputs cannot be data type logical.
This function fully supports GPU arrays. For more information, see Run MATLAB Functions on a GPU (Parallel Computing Toolbox).
This function fully supports distributed arrays. For more information, see Run MATLAB Functions with Distributed Arrays (Parallel Computing Toolbox).
plus | uminus
plus
uminus
이 예제의 수정된 버전이 있습니다. 사용자가 편집한 내용을 반영하여 이 예제를 여시겠습니까?
다음 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