How I can code ||x||=1 with first component x1>0, x is vector

2 ビュー (過去 30 日間)
MAK
MAK 2018 年 9 月 25 日
回答済み: Dimitris Kalogiros 2018 年 9 月 25 日
How I can code |x|=1 with first component x1>0, x is vector
  1 件のコメント
James Tursa
James Tursa 2018 年 9 月 25 日
Please provide more detail. What problem are you solving with the code? How will this be used downstream in your code? Etc.

サインインしてコメントする。

回答 (1 件)

Dimitris Kalogiros
Dimitris Kalogiros 2018 年 9 月 25 日
You can use norm or vecnorm .
For example (and by usage of symbolic math toolbox):
clc;close all; clc
X=sym('X', [1, 3])
eq=norm(X)==1
You will receive:

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by