Recent content by mushi

  1. M

    MATLAB Spliting a line segment into desired length segments (Matlab)

    Hi Guys, I don't know if I make sense but please try to help me. I am working in Matlab. I have multiple line segments of different lengths with end point coordinates. I want to split each major segment into multiple minor segments in a way that all segments will have same length...
  2. M

    3D Rotation of a rigid body in Fixed Axes (Not Axes Rotation)

    Dear Studiot, Thanks for your help. Now I have almost solved my problem. Kind Regards,
  3. M

    3D Rotation of a rigid body in Fixed Axes (Not Axes Rotation)

    Dear Studiot, My question was not emphasized on CW or ACW. I know that if I invert the sign of 'sin' in the matrices you mentioned, the direction will be changed. I actually want to ask why I need to rotate in X-axis for second rotation rather than Y-axis when actually the rotation around...
  4. M

    3D Rotation of a rigid body in Fixed Axes (Not Axes Rotation)

    Dear Muphrid, Thanks for the reply but your reply is too complicated for me. Can you please explain.
  5. M

    3D Rotation of a rigid body in Fixed Axes (Not Axes Rotation)

    Dear Studiot, Thanks for the reply. This is actually a further explanation of what has already been said and understood. Thanks for this anyways. The difficulty I am facing is as follows: I rotated my coordinates first around Z-axis, 90° CW. This mapped +ve y-coordinate onto +ve x-coordinate...
  6. M

    3D Rotation of a rigid body in Fixed Axes (Not Axes Rotation)

    Dear Studiot, I have points (in Cartesian coordinates) and I know the desired angle (α,β,γ) on which I want my points to be rotated. I want to get the rotated points i.e. P2 in your example. For example, P1(1,2,3) has to be rotated around principal axes XYZ at angles (α=10,β=20,γ=30). What...
  7. M

    3D Rotation of a rigid body in Fixed Axes (Not Axes Rotation)

    Dear Simon, You are referring to the same Wikipedia article. If it is the same then please explain because I am not getting what I intend to.
  8. M

    3D Rotation of a rigid body in Fixed Axes (Not Axes Rotation)

    Hi Filip, I am sorry that is what I don't want to do. I tried to explain in my post (may be not explained in a good way) that this method is used when you want to rotate the principal axes. I want my principal axes remind fixed. I rather want to rotate my body (defined by Cartesian...
  9. M

    Converting Rotation matrix to operate on fractional coordinates

    Hi Guys, Sorry I am not going to reply to the question above but I have another problem regarding my task. I hope you don't mind to reply. My problem is as follows: I want to rotate a 3D body around an arbitrary axis with fixed principal axes XYZ. The solutions I found is with Euler angles...
  10. M

    3D Rotation of a rigid body in Fixed Axes (Not Axes Rotation)

    Dear All, I have come across with a seemingly very simple problem but could not solve it by searching on internet and books. May be I am confused. I want to rotate a 3D body around an arbitrary axis with fixed principal axes. The solutions I found is with Euler angles (Euler rotational...
  11. M

    MATLAB Fortran alternative to Matlab 'system' command

    Hi, I have been trying to run a linux executable (written in fortran77) into my another code (also in fortran77). In Matlab, I did it with "system('./<filename>')". But I am not able to do it in fortran script as './' is not simply working for me. I will really appreciate if anyone could...
  12. M

    From Lat,Long,Height to Azimuth,Elevation,Range Conversion

    Hi all, Can anyone tell me how can I convert lat, long & height to azimuth, elevation & range? I found some calculators online but I need mathematical formula please. Kind Regards,
  13. M

    Calling function with no input argument

    Hi guys, I am going to ask another very stupid question. But surprisingly, I could not find any help on it on internet. My question is: I have defined a function which doesn't take any any input and one output. When I called it, the program halts. I have checked the function and it is...
  14. M

    Strange indexing in Fortran Code

    In my view 2D corresponds to (row, column). I found the data in the file in the same manner i.e. in rows and columns. How would you define a 3rd dimension in that data file no matter how the arrays were defined in the dimension statement? PS: This is not my question this is actually matlab's...
  15. M

    Unraveling the Mystery of 'rfac' in Fortran

    Actually I am working on a code that has been written by someone else and I found 'rfac(X)' in that code. The code is written in Fortran and I am trying to use it in Matlab. I have checked everywhere but could not find any function named 'rfac'. I hope I am clear now.
Back
Top