t = xlsread('trandom','E2:E59');y = xlsread(rtemp.xlsx','H2:H59');N=58;for i=1:NA=[N sum(sin(t(i)) sum(cos(t(i)) sum(sin(t(i)) sum(sin(t(i))*sin(t(i)) sum(sin(t(i))cos(t(i)) sum(cos(t(i)) sum(sin(t(i))cos(t(i)) sum(cos(t(i))*cos(t(i))];B=[sum y(i) sum(y(i)sin(t(i)) sum(y(i)cos(t(i))];endX=A\B
idea is to solve ax=b for x, where ive written sum= summation of each i term of t or y
keep getting errors, not confident with matlab
Thanks for any help given
Best Answer