Ive generated an ellipse and successfully rotated it about a fixed point. My problem is that the resulting rotated ellipse is much too large, with the axiis being much too large
my graph vs expected graph
Furthermore, I am working off the expected given values from the expected graph
with given semi-major, and semi-minor axii given
Im unsure what i've done wrong and just want to know if its an error with the paper or with my script
load("mens_average_impedance_20t69_19t25.mat");
load("Test1_Data_Averages.mat");
y = (XcH_mean / RH_mean) * x;
ZR = ((Re_mean/Height)- (R_mean/Height)) / R_sd
ZXc = ((abs(Im_mean)/Height) - (Xc_mean/Height)) / Xc_sd
rot_matrix = [cosd(rot_major), sind(rot_major); ...
-sind(rot_major), cosd(rot_major)];
C = [RH_mean, XcH_mean] ;
xe_95 = C(1)+a_95*sin(th) ;
ye_95 = C(2)+b_95*cos(th) ;
xe_95_alligned = [xe_95 - C(1); ye_95 - C(2)]';
xe_95_shift = xe_95_alligned * rot_matrix;
xe_75= C(1)+a_75*cos(th) ;
ye_75 = C(2)+b_75*sin(th) ;
xe_75_alligned = [xe_75-C(1); ye_75-C(2)]';
xe_75_shift = xe_75_alligned * rot_matrix;
xe_50 = C(1)+a_50*cos(th) ;
ye_50 = C(2)+b_50*sin(th) ;
xe_50_alligned = [xe_50-C(1); ye_50-C(2)]';
xe_50_shift = xe_50_alligned * rot_matrix;
plot(xe_95_shift(:,1)+C(1),xe_95_shift(:,2)+C(2), "r")
plot(xe_75_shift(:,1)+C(1), xe_75_shift(:,2)+C(2), "r")
plot(xe_50_shift(:,1)+C(1), xe_50_shift(:,2)+C(2), "r")
Please let me know your thoughts, and if you have any issues running the code