Writing unit vector with the terms in an equation

4 Ansichten (letzte 30 Tage)
Ismita
Ismita am 5 Mär. 2024
Verschoben: Sabin am 22 Mär. 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!

Antworten (1)

Manikanta Aditya
Manikanta Aditya am 5 Mär. 2024
Verschoben: Sabin am 22 Mär. 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!

Kategorien

Mehr zu Just for fun finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by