Writing unit vector with the terms in an equation

2 views (last 30 days)
Ismita
Ismita on 5 Mar 2024
Moved: Sabin on 22 Mar 2024
unit_y_vector = (mean_speed_T * mean_speed_N)/(magnitude_U0_mean_RTN)^2 - (mean_speed_R * mean_speed_T)/(magnitude_U0_mean_RTN)^2;
unit_y_vector = (mean_speed_T * mean_speed_N)/(magnitude_U0_mean_RTN)^2 \hat{R}- (mean_speed_R * mean_speed_T)/(magnitude_U0_mean_RTN)^2 \hat{N};
if first term in the right hand side is along \hat{R} and the second term is along \hat{N}, should I write the unit vectors/expression for those unit vectors with the terms in the equation? Sometimes I see the vector comes from the matrix, we don't need to write. What to do here? I am beginner. Thanks!

Answers (1)

Manikanta Aditya
Manikanta Aditya on 5 Mar 2024
Moved: Sabin on 22 Mar 2024
Hey,
Yes, you should write the unit vectors with the terms in the equation. The unit vectors help to specify the direction of each term in the vector equation.
unit_y_vector = \hat{R} * (mean_speed_T * mean_speed_N)/(magnitude_U0_mean_RTN)^2 - \hat{N} * (mean_speed_R * mean_speed_T)/(magnitude_U0_mean_RTN)^2;
Sometimes, when the vector comes from a matrix, the unit vectors are implicit in the matrix’s structure, so they don’t need to be written explicitly. However, as a beginner, it’s a good practice to write them out as it helps you understand the directionality of each term. As you get more comfortable with vectors and matrices, you’ll get a better sense of when you can leave them implicit.
Thanks!

Categories

Find more on Just for fun in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!