Borrar filtros
Borrar filtros

how to get vector from x and y coordinates ?

10 visualizaciones (últimos 30 días)
azkya novia
azkya novia el 1 de Sept. de 2017
Comentada: Image Analyst el 2 de Sept. de 2017
i have points from minutiae represented as x and y coordinates for termination(end point) and biffurcation(cross section point), for example bifurcation points are :
x: 70 163 167 145 179 142
y : 70 100 20 40 30 20
i set those points as a variable called BifPoint, and try to set them as input for neuron in neural network as data training from 100 images. how to have those coordinates x and y points as vectors so that i can use the vectors as input in neural network for training and then classify them?

Respuesta aceptada

Image Analyst
Image Analyst el 2 de Sept. de 2017
To make your x and y into vectors by using valid MATLAB syntax, Replace : with =[ and then close with a right bracket:
x = [70 163 167 145 179 142];
y = [70 100 20 40 30 20];
  7 comentarios
azkya novia
azkya novia el 2 de Sept. de 2017
Dear image analyst, so what is the right code or way to assigning number point from x and y coordinates that i already have to the plane 3-D array? should i let the input vector into 2-D array and change the plane to be 2-D array ? i dont have any idea and not yet understand enough, please kindly give me your suggestions.
Image Analyst
Image Analyst el 2 de Sept. de 2017
So why declare it at 1-d (1-by-180) and then access it with two indexes? target(:,1:18) means "all rows and columns 1 through 18" but there is only one row because you declared target as zeros(1, 180).
Anyway, you need to look at the function where you intend to send this vector or matrix and see what it expects, and send it that. I don't know neural networks or your particular function so I can't help with that.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Image Data Workflows en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by