Develop a MATLAB Graphical User Interface (GUI) that can find the length of an a
ID: 3824617 • Letter: D
Question
Develop a MATLAB Graphical User Interface (GUI) that can find the length of an arc in the three-coordinate systems. The user will need to specify the coordinate system and them then constant and the varying variables and calculate the length accordingly
Develop a MATLAB Graphical User Interface (GUI) that can find the length of an arc in the three-coordinate systems. The user will need to specify the coordinate system and them then constant and the varying variables and calculate the length accordingly
Develop a MATLAB Graphical User Interface (GUI) that can find the length of an arc in the three-coordinate systems. The user will need to specify the coordinate system and them then constant and the varying variables and calculate the length accordingly
Explanation / Answer
I have given the code refered from books in a general way.
This might be helpful if you can go with the GUI coding.
xi= a:(b-a)/n:b;
% generating the y-values of the function
yi=subs(curve,x,xi);
% assuming that between consecutive data points, the
% curve can be approximated by linear splines.
leng_straight=0;
m=length(xi);
% there are m-1 splines for m points
for i=1:1:m-1
dx=xi(i+1)-xi(i);
dy= yi(i+1)-yi(i);
leneach=sqrt(dx^2+dy^2);
leng_straight=leng_straight+leneach;
end
fprintf (‘ Breaking the line into short lengths =%g’,leng_straight)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.