MATLAB: How to call element from vector out of t = @(theta) x*cos(thet​a)-y*sin(t​heta);

MATLABmatlab function

x = linspace(1,10,10);
y=x;
t = @(theta) x*cos(theta)-y*sin(theta);
t(0.1) will give me vector. How to get element 5 ?

Best Answer

My approach:
tv = t(0.1);
t5 = tv(5) % Element 5
Related Question