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

2 visualizaciones (últimos 30 días)
MAK
MAK el 25 de Sept. de 2018
Respondida: Dimitris Kalogiros el 25 de Sept. de 2018
How I can code |x|=1 with first component x1>0, x is vector
  1 comentario
James Tursa
James Tursa el 25 de Sept. de 2018
Please provide more detail. What problem are you solving with the code? How will this be used downstream in your code? Etc.

Iniciar sesión para comentar.

Respuestas (1)

Dimitris Kalogiros
Dimitris Kalogiros el 25 de Sept. de 2018
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:

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by