Borrar filtros
Borrar filtros

Output of histfit without the plot

55 visualizaciones (últimos 30 días)
Otis
Otis el 26 de Ag. de 2020
Comentada: Star Strider el 3 de Mzo. de 2023
Is there a way to get the fitted curve generated by histfit without it being plotted? I want the curve it generates, but I don't want the plot it generates. Thanks times a million in advance.
Bill

Respuesta aceptada

Star Strider
Star Strider el 26 de Ag. de 2020
Try this:
r = normrnd(10,1,100,1); % Create Data
h = histfit(r,6);
set(gcf,'Visible','off')
CurveX = h(2).XData;
CurveY = h(2).YData;
.
  8 comentarios
Charlotte Han
Charlotte Han el 3 de Mzo. de 2023
Much appreciated!
Am I able to have two fits on the same plot but not on top of each other, but side by side like subplots?
Star Strider
Star Strider el 3 de Mzo. de 2023
I am not certain what you want to do. See if the tiledlayout function will work.
A Vote would be appreciated!
.

Iniciar sesión para comentar.

Más respuestas (1)

Babar
Babar el 27 de Mayo de 2022
r = normrnd(10,1,100,1); % Create Data
h = histfit(r,6);
set(gcf,'Visible','off')
CurveX = h(2).XData;
CurveY = h(2).YData;

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by