My graph is blank.
Mostrar comentarios más antiguos
When I run the code I get an answer, but the plot always comes up blank, with a scale that does not match the output of the function.
clear
clc
k = 1:10
x = 0.1:0.1:1
bug = 0
for a = 1 : length(k)
this_k = k(a)
this_x = x(1:a)
bug = bug + sin((factorial(k).^2).*x)/factorial(k)
end
1 comentario
James Tursa
el 18 de Nov. de 2016
Editada: James Tursa
el 19 de Nov. de 2016
What plot? I don't see what you are trying to plot. And what is this code supposed to be calculating?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!