Pass pointer to function as in C
Mostra commenti meno recenti
I'm a C/C++ programmer and am new to MATLAB. May I ask if I could do the below equivalence in MATLAB, where I have a C subroutine that updates one array from the values of another array?
void vec_update(double* vec1, double* vec2)
{
vec2[0] = vec1[0] + vec1[1] + ... ;
...;
vec2[N] = ...;
}
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Software Development Tools in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!