sin(x).^4
You need to use the element wise power operator
Вопрос
I need to compute something like this in Matlab:
sin4(x)
and no
(sin(x))^4
But when I try sin^4(x)
, Matlab gives an error.
How could I do this?
Решение
sin(x).^4
You need to use the element wise power operator