Where is the mistake of the ^? i can plot the graph without the ^ but it say i have mistake after adding the ^ or .^

조회 수: 1 (최근 30일)
x_array = -5:5;
y_array1 = sin(x_array.^2).*exp^(cos(x_array));
plot(x_array, y_array1)

채택된 답변

Awais Saeed
Awais Saeed 2021년 11월 16일
exp^(cos) is incorrect. Use
y_array1 = sin(x_array.^2).* exp(cos(x_array));

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by