Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

"Error using mesh" code when trying to graph linear regressions

1 visualización (últimos 30 días)
Leesy
Leesy el 6 de Mzo. de 2017
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
For some reason, with this code, i get a funny little blue figure with no mesh, and I have no idea what is going wrong with the code, does anybody else? Any assistance would be greatly appreciated!!
Also, for some reason, my labels aren't working either, i've never had matlab do that! I know I can use the 'tools' drop down menu in the figure, but if anyone knows why the code isn't working that would be awesome!

Respuestas (1)

Star Strider
Star Strider el 6 de Mzo. de 2017
What are the sizes of ‘x1fit’ and ‘x2fit’?
My guess is that one of them is (1x1).
  3 comentarios
Leesy
Leesy el 6 de Mzo. de 2017
x1fit is just a number, but idk how that could be.
Walter Roberson
Walter Roberson el 6 de Mzo. de 2017
Your code would have problems if min(x1) is within 25 of max(x1)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by