how to get vector from x and y coordinates ?

10 次查看(过去 30 天)
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?

采纳的回答

Image Analyst
Image Analyst 2017-9-2
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 个评论
azkya novia
azkya novia 2017-9-2
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 2017-9-2
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Data Workflows 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by