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 中查找有关 Directed Graphs 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by