value from graph
2 ビュー (過去 30 日間)
here i need the value of theta at at a poin of AF
i wrote that x(y(0.7)) in command window but it gives
"Empty matrix: 1-by-0"
how can i get the value of theta at y=0.7
回答 (1 件)
Matt Fig 2011 年 3 月 24 日
I am surprised you didn't get an error, indexing into y like that. What is y anyway, you don't define it. All I see is theta, w, and AF. And what are B,d and N? Also, why no semi-colons?
I don't know why you would do that when you can just do this:
x = theta;
y = AF;
[mn,I] = min(abs(.7-y));
Note that you are using a cyclical function, so there might be more than one value of y 'equal' to .7. If you want to get them all, use:
tol = 1e-6; % decide how close is close enough.
I = abs(.7-y)<tol