Simple program to read Matrix #433
-
I will just take a stab at this and see if anyone can help me . I want to make a program that reads a matrix at position 1,1 Boiled code snippet below . real_t *matrix_value;
char matrx_str[10];
/* Print a string */
os_GetMatrixElement(OS_VAR_MAT_A, 1, 1, matrix_value);
real_t number_i_want_mtx = *matrix_value;
os_RealToStr(matrx_str, &number_i_want_mtx, 8, 1, 1);
os_PutStrFull("this is the matrix val 1,1 ");
os_PutStrFull(matrx_str); |
Beta Was this translation helpful? Give feedback.
Answered by
adriweb
Apr 17, 2023
Replies: 1 comment 1 reply
-
Rather, at the beginning, create a real_t number_i_want_mtx;
os_GetMatrixElement(OS_VAR_MAT_A, 1, 1, &number_i_want_mtx); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mateoconlechuga
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rather, at the beginning, create a
real_t
then pass it (its pointer) to the function that will fill it: