Plotting With Arrays on Surf Function
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
fraser watts
el 30 de Abr. de 2022
Editada: Image Analyst
el 1 de Mayo de 2022


calculating the array correctly, yet when recalling it for displying on surf plot its just a flat surface
0 comentarios
Respuesta aceptada
Image Analyst
el 30 de Abr. de 2022
How did you paste that code in there? I can't copy it. You didn't paste an image did you? We can't run an image. Post your code as code, or else attach it with the paperclip icon.
What is "laptime"? It doesn't change inside the loop so it's not surprising your array is all the same value.
Anyway, plot is a function. Do not use it as a variable name.
5 comentarios
Image Analyst
el 1 de Mayo de 2022
Editada: Image Analyst
el 1 de Mayo de 2022
myPlot(k,j) = Laptime(k, j);
Más respuestas (1)
Walter Roberson
el 30 de Abr. de 2022
Every iteration you are storing the exact same value Laptime, which never changes.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!