Вопрос

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top