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 CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by