Answered
Problem when running Matlab app
It's not what, it's who, and it's you. Jokes aside, post the exact error message. You might have mispelled a property of some c...

2 months ago | 0

Answered
Changing annotation size or font
Is your piece of code in for loop? Guessing that r1(1) and r1(end) are changing and there are many different texts on top of e...

2 months ago | 0

| accepted

Answered
Error using matlab.ui.​control.Ed​itField/se​t.Value (line 98) 'Value' must be a character vector or a string scalar.
Hello, The component EDITED app.EntertheradiusEditField.Value is probably a Text Field, which accepts only characters/array, r...

2 months ago | 0

| accepted

Answered
Unrecognized property 'value' for class 'matlab.ui.control.Label'. app gui .Word to pdf converter
There's difference between EditField and EditFieldLabel, also, properties are case sensitive. Replace this in the first two cal...

2 months ago | 0

| accepted

Answered
What is missing from MATLAB #2 - the next decade edition
When typing code, if user wants to reference a variable or a function, one could click tab and get a matching list of functions ...

2 months ago | 1

Answered
Calling a function with no arguments
You can achieve it this way. function function_name( var1,var2,var3) However, imagine a situation where you'd like to edit som...

2 months ago | 0

Answered
Sinusoidal signal wave plotting
One of these will solve your issue: sind or sin MATLAB Onramp Using search tool to find an answer to your question

2 months ago | 0

Answered
MATLAB Answers Wish-list #5 (and bug reports)
Create a MATLAB bot (just like Reddit bots) that posts useful information. As an example, person asks a question related to imp...

2 months ago | 0

Answered
R2020b: App Designer says can't open File MATLAB failing if condition
Try renaming the app, C:\Users\SHUBHAM\Documents\MATLAB\Dymola_App.mlapp: Can't open file. On screenshots you have number two ...

2 months ago | 0

Answered
How to set scientific notation in data tips ?
Hello, x = 1:10 y = rand(1,10).*1000 h = plot(x,y) for ii = 1 : length(x) datatip(h, 'DataIndex', ii) end You can set...

2 months ago | 0

| accepted

Answered
How to transfer a Matlab2020b App to Matlab2019b or lower version?
In the App Designer toolbar, click Save and Save Copy as, then you'll get a window in which you choose Save as type. Options av...

2 months ago | 0

Answered
Pausing and continuing an animation in App Designer
%Schleife zur Animation q = 1; time = 0; tic; while time < tu % code if app.ButtonState.Va...

2 months ago | 0

Answered
Design Optimization Toolbox MATLAB based on 2 or more outputs
Use fgoalattain to minimise both functions function fobj = codeNoc(noc) %Code fobj(1) = pressure_drop; fobj(2) =...

2 months ago | 0

Answered
How to create Timetable with .txt file?
Import tool https://www.mathworks.com/help/matlab/import_export/import-data-interactively.html

2 months ago | 0

Answered
size() function returns wrong size
k_labels should return 1x1 array with value of zero. Did you clear workspace from previous runs? From the documentation on fun...

2 months ago | 0

| accepted

Answered
Assigning a context menu to a UIAxes
Hello Brian, You can attach Context Menu component to the UIAxes component by drag & drop, from the Component Browser, or from...

2 months ago | 1

| accepted

Answered
change only 3 of many outputs of a function through the App Designer
I am not sure what would be the easiest way considering that Configuration.m generates a file. After you call Configuration, you...

2 months ago | 0

| accepted

Answered
Get boundary object from a bar plot
It looks like such object does not exist on bar anymore.

2 months ago | 0

| accepted

Answered
how can i get permission for current folder
You can't create new folder within MATLAB root folder. Change current folder on the left section to where you have write access....

2 months ago | 0

Answered
Saving All Image files in a UITable in App Designer
Hello, Here's some code, but it's not tested. I don't know which one of your functions display the processed images, you can us...

2 months ago | 0

Answered
HORIZONTAL BAR PLOT WITH GAPS
Here is the heatmap solution, but unfortunately it doesn't return the total time in bar. clc; clear; close all; M1 = [ones...

2 months ago | 0

Answered
Matlab switch cursor from other programm to the command window while running a script
See program called Tray Everything, it allows you to hide running programs in Windows tray, and it will never lose the focus fro...

2 months ago | 1

Answered
Surface plot using fitrpg
Hello, Take a look at the code below, unfortunately I can't find the link where I found an example I took the code from, but l...

2 months ago | 0

| accepted

Answered
How to obtain a contour plot from given function?
You need to obtain all x values and their corresponding objective function values. Reference to the answer that the idea is take...

2 months ago | 0

| accepted

Answered
batch processing (automating code processing)
This will give you the structure containing all .mat files. File_Struct = dir('**/*.mat'); Edit: Use name and folder to get t...

2 months ago | 0

| accepted

Answered
How do I extract some rows in a marix that satisfy a given condition?
Hello, clc; clear; Nodi = Read_File('nodi.txt'); load demand.mat basedemand = basedemand'; % column orientation basede...

3 months ago | 0

| accepted

Answered
how to save a UITable in Excell along with Rows & Column Names (Appdesigner, R2020a)
Use writetable to solve your problem, there's a Name-Value pair that corresponds to your need. Here's the example: https://www.m...

3 months ago | 1

| accepted

Answered
Extract data from text file
I am going to post this as an answer without it being one, this question has been answered few times already in the last couple ...

3 months ago | 1

| accepted

Answered
MATLAB Answers Wish-list #5 (and bug reports)
Users who edit away the questions get an explicit warning not to do it again. Freeze account/remove rights to post questions/ans...

3 months ago | 2

Answered
Index exceeds the number of array elements (0) in MATLAB app designer
Hello, You can try first getting rid of the index of h, even though it should work without it. area is the child of UIAxes, if...

3 months ago | 1

| accepted

Load more