Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

GUI needed for following code

조회 수: 2 (최근 30일)
Ajay Vignesh
Ajay Vignesh 2018년 8월 6일
마감: MATLAB Answer Bot 2021년 8월 20일
When you run this code you get A, B, C values, Now I need the same thing in GUI format, Please help.
when we give X value & Y value in separate Input_X box & Input_Y box
after that pressing fit button i need output values A,B,C in output box.
%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)
  댓글 수: 1
Adam Danz
Adam Danz 2018년 8월 6일
Here's a decent introduction on creating GUIs by using GUIDE(). What you're describing is a simple GUI and since GUIDE is also simple to learn, this task seems like a good one for a beginner. I'd be happy to help if you get stuck.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by