Where is the mistake of the ^? i can plot the graph without the ^ but it say i have mistake after adding the ^ or .^
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Kai Wing YU
el 16 de Nov. de 2021
Respondida: Awais Saeed
el 16 de Nov. de 2021
x_array = -5:5;
y_array1 = sin(x_array.^2).*exp^(cos(x_array));
plot(x_array, y_array1)
0 comentarios
Respuesta aceptada
Awais Saeed
el 16 de Nov. de 2021
exp^(cos) is incorrect. Use
y_array1 = sin(x_array.^2).* exp(cos(x_array));
0 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!