MATLAB: Can anyone explain the following code plotting Dear All, I would make 3D surafce from given 2D coordinates. the following link dealt with same problem. However i could not understand the parameters used in the code. Could anyone explain this? code link https://in.mathworks.com/matlabcentral/answers/122948-rotating-a-2d-profile-to-make-3d#answer_130148 Best Answer Ask me something Related SolutionsMATLAB: How to rotate points on 2D coordinate systems Hello,You can rotate your points with a rotation matrix:Here's a simple implementation,% Create rotation matrixtheta = 90; % to rotate 90 counterclockwiseR = [cosd(theta) -sind(theta); sind(theta) cosd(theta)];% Rotate your point(s)point = [3 5]'; % arbitrarily selectedrotpoint = R*point;The rotpoint is the 90 degree counterclockwise rotated version of your original point.Hope this helps! MATLAB: Rotation of a set of 3D points about a point Here is the solutionhttp://www.mathworks.com/matlabcentral/answers/277331-rotating-a-2d-plot-around-origo Related QuestionHow to Plot A 3D Ring of any given shapeHow to make a contour map from a scatter plot
Best Answer