A logical function with Experimental data

1 回表示 (過去 30 日間)
Reuben Addison
Reuben Addison 2019 年 1 月 18 日
I designed an exepriment with a different software and I am using matlab to analyse my data, First I had my subjects move a stylus from a center circle with coordinates [start_x = 24.000;,start_y = 16.000] to four different targets either above, below, to the left or right of the target circle and example of the cordinate for the target located at the top of the origin is [target_x = 27.000,target_y = 16.000], I need help with a function that can put all the four target locations into an array and automaticaly select (if true) the right target and use it for the analysis rather than have me edit the cordinates individually for different target locations.
example of my code is below
start_x = 24.000;
start_y = 16.000;
target_x(N-1) = [24.000,19.000,21.000,16.000,24.000,13.000,27.000,16.000]
target_y(N) = [24.000,19.000,21.000,16.000,24.000,13.000,27.000,16.000]

回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by