Matlab coder and exponentiation
Mostrar comentarios más antiguos
I'm sure there is a way to get matlab coder to do A = B ^ C where all A, B and C are scalers, but for the life of me, I'm just not seeing it.
Every way I try and express it ends up with the error "Matrix power is not supported for code generation."
A = B(1) .^ C(1) isn't getting me where I want to go.
I can do it in C. I can do it in Matlab, I just can't get Matlab to do it in C.
2 comentarios
Konstantinos Sofos
el 27 de Mzo. de 2015
A,B and C are matrices or scalars...i cannot understand the "scalers" that you wrote?
Rick Rosson
el 27 de Mzo. de 2015
Konstantinos, don't you think it's just a typo?
Respuesta aceptada
Más respuestas (1)
James Tursa
el 27 de Mzo. de 2015
0 votos
Have you tried A = exp( C * log(B) ) ?
1 comentario
David Short
el 30 de Mzo. de 2015
Categorías
Más información sobre MATLAB Coder en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!