NEED HELP IN MATLAB GUI FOR FOLLOWING CODE

조회 수: 1 (최근 30일)
Ajay Vignesh
Ajay Vignesh 2018년 7월 20일
다시 열림: Walter Roberson 2018년 12월 22일
I have X, Y input when I give X&Y input in the following code, I get ABC values in the result, now the same thing I need in MATLAB-GUI, when I give two inputs it gives the value of ABC automatically.
%x=[-0.5 -0.4 -0.3 -0.2 -0.1 0 0.1 0.2 0.3 0.4 0.5]';
x=[-0.5 -0.4 -0.3 -0.2 -0.1]';
y=[-2.2026 -0.2981 -0.0403 -0.0055 -0.0007]';
fun = fittype(@(A, B, C, x)(A.*(exp(B.*x)-exp(-C.*x))));
[fitobject,gof,output] = fit(x, y, fun)
ABC = coeffvalues(res)

채택된 답변

Birdman
Birdman 2018년 7월 20일
Check the attached zip file. In screenshot, you will see how to enter x and y vectors and you will see that you obtain the result. Hope this helps. I used App Designer for it.
  댓글 수: 1
Ajay Vignesh
Ajay Vignesh 2018년 7월 20일
Thanks, Birdman..!! your growth reaches maximum, wishes.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by