matlab-app-designer

How to customize the background of an App Designer figure?

自闭症网瘾萝莉.ら 提交于 2021-01-27 06:53:12
问题 I'd like to attach a logo or change the whole background of an App Designer uifigure . How can this be done? 回答1: If you want to set a solid background color for the entire figure , there exists a documented way to do this, e.g.: % When creating a new uifigure: fig = uifigure('Color',[R G B]) % if the uifigure already exists: fig.Color = [R G B]; If you want to change the background color of just some region , you can add a uipanel with no title or border ( uipanel(...,'BorderType','none',

How can I access data from outside the app class in appdesigner (Matlab)

荒凉一梦 提交于 2020-12-02 02:00:30
问题 I have created a very simple GUI in appdesigner (Matlab) with one dropdown menu. Additionally, I took the code that got generated (under 'Code View' tab) and pasted that in a normal .m file (because, I want to further add some more contents to this code). My question is how can I access certain variable from this self generated code, so that I can play with that value outside of the main class? For example: In App class, for this dropdown menu section, following line of code got generated:

MATLAB App - Add path before component creation

大憨熊 提交于 2020-06-14 06:03:07
问题 I have a MATLAB App App.mlapp in a certain folder ~/myapp/ . The functions it uses and some graphics used in the GUI are in ~/myapp/subfolder . In order to run App.mlapp correctly I have to each time manually add ~/myapp/subfolder to my path before launching the app. How can I automatically add the subfolder? I tried putting addpath(genpath(~/myapp/subfolder)); at the beginning of StartupFcn . However, as StartupFcn is called after the component creation, which already requiere some of the

Table fields in format in PDF report generator - Matlab

对着背影说爱祢 提交于 2020-05-17 03:04:10
问题 When I save a table as PDF (using report generator) I do not get the numeric fields (Index1, Index2, Index3) shortG format (total of 5 digits). What is the problem and how can I fix it? The code: function ButtonPushed(app, event) import mlreportgen.dom.*; import mlreportgen.report.* format shortG; ID = [1;2;3;4;5]; Name = {'San';'John';'Lee';'Boo';'Jay'}; Index1 = [71.1252;69.2343245;64.345345;67.345322;64.235235]; Index2 = [176.23423;163.123423654;131.45364572;133.5789435;119.63575647];

Table fields in format in PDF report generator - Matlab

扶醉桌前 提交于 2020-05-17 03:00:10
问题 When I save a table as PDF (using report generator) I do not get the numeric fields (Index1, Index2, Index3) shortG format (total of 5 digits). What is the problem and how can I fix it? The code: function ButtonPushed(app, event) import mlreportgen.dom.*; import mlreportgen.report.* format shortG; ID = [1;2;3;4;5]; Name = {'San';'John';'Lee';'Boo';'Jay'}; Index1 = [71.1252;69.2343245;64.345345;67.345322;64.235235]; Index2 = [176.23423;163.123423654;131.45364572;133.5789435;119.63575647];

How to customize App Designer figures in more ways than officially documented?

人盡茶涼 提交于 2019-12-29 04:57:26
问题 A recently published article in UndocumentedMatlab, mentions that App Designer figures are actually web pages using the Dojo Toolkit. This means we could theoretically manipulate the HTML DOM directly to achieve certain UI customizations that are otherwise unavailable. Below is an example of an App Designer figure definition, as appears in the .m file generated by the App Designer (on MATLAB R2016a): classdef domDemo < matlab.apps.AppBase % Properties that correspond to app components

MATLAB R2017a UIAxes Pan/Zoom Limits

喜欢而已 提交于 2019-12-11 12:59:09
问题 In our previous code we've had a basic UI using standard figures. I'm in the process of updating the code to use the new app designer style UIFigures - I'm not actually using the app designer tool, but rather building it programmatically. When using the standard figures and axes, it is possible to constrain zooming and panning of an axis to say just the horizontal (x) direction. This was done using pan 'xon'; %or zoom 'xon'; However this style doesn't work for UIAxes elements. I've tried