Pushbutton function not working

2 ビュー (過去 30 日間)
Kieran Graham
Kieran Graham 2020 年 4 月 18 日
コメント済み: Mehmed Saad 2020 年 4 月 18 日
I am trying to run a push button function that runs a code which calculates a value and then display the value in an edit field. This code worked in my first mlapp file but isnt working in this one. There is no error message but also no value.
% loads values from previous mlapp file.
load('temp.mat','Ps','Rtotal','Vs','Cstern','Tf','Ta','B','L','Cm','nabla','LCB','Abt','rho','d_BT','At','hb','Cwp','Screw','D','Z','Pc','ks','dv')
% Performs calculations...
VoyageEnergykWh=EnergyManeouvring+EnergyJourney; % Voyage Energy in kWh
VoyageEnergyJ=VoyageEnergykWh/(1000*60*60); % Voyage Energy in Joules
answer=VoyageEnergykWh;
answer2=VoyageEnergyJ;
app.kWhTextArea.Value=num2str(answer);
app.JoulesTextArea.Value=num2str(answer2);
  5 件のコメント
Kieran Graham
Kieran Graham 2020 年 4 月 18 日
Sorry for me being useless but would you be able to explain how to execute a break point in appdesigner
Mehmed Saad
Mehmed Saad 2020 年 4 月 18 日
just remove the .zip from the end to make it capture-7.rar and then extract it there'll be a video inside it

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDesktop についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by