ヘルプ センターヘルプ センター
汎用符号反転処理
gnegate(x)
gnegate(x) は、行列または行列の cell 配列を取り、それらの要素の値の符号を反転します。
この例では、cell 配列の符号を反転する方法を説明します。
x = {[1 2; 3 4],[1 -3; -5 2]}; y = gnegate(x); y{1}, y{2}
ans = 2×2 -1 -2 -3 -4
ans = 2×2 -1 3 5 -2
R2010b で導入
gadd | gsubtract | gdivide | gmultiply | gsqrt
gadd
gsubtract
gdivide
gmultiply
gsqrt
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
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