how to display coefficient and offset on graph?
    6 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Jaehwi Bong
 el 17 de Jun. de 2019
  
    
    
    
    
    Comentada: Vishnu Vardhan
      
 el 17 de Jun. de 2019
            I'd like to display some values to plot. What should I do ? 
A=xlsread('A.xlsx');
t=A(:,1);
i=A(:,2)/10^(2);
ft = fittype('a*exp(-x/b)+c');
F=fit(t,i,ft)  
b = 1/F.b;
offset = F.c;
plot(t,i);
hold on;
plot(F)
hold  off
It's an example plot, I'd like to make a plot through codes like this figure.

0 comentarios
Respuesta aceptada
  Vishnu Vardhan
      
 el 17 de Jun. de 2019
        Hi Jaehwi
You can use text function available in MATLAB by specifying the location of text wherever you want.
txt = {'b=0.007','Offset='};
text(220,10.5,txt)
6 comentarios
  Vishnu Vardhan
      
 el 17 de Jun. de 2019
				fitoptions should work fine , Once verify whether limits are correct.
Más respuestas (0)
Ver también
Categorías
				Más información sobre Get Started with Curve Fitting Toolbox en Help Center y File Exchange.
			
	Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

