Respondida
Index in position 1 is invalid Problem
Try this... x = [0,240,480]; y = [1200,0,0]; Fcn_AddThings = str2func('@(x,y) x.^2 - 2*y'); Fcn_AddThings(x, y) Fcn_AddTh...

más de 1 año hace | 0

Respondida
Unable to use UDP when using a standalone executable
Firewall. No doubt about it! :) Just add your app (not Matlab, but your deployed app) in "white list" of the firewall. See imag...

más de 1 año hace | 0

| aceptada

Respondida
Display one axes across multiple figures
No. you can't, but copyobj will do the job, right? And you can use addlistener to help you handle the update process of all your...

más de 1 año hace | 0

Respondida
Extract fields from struct and convert to excel file
Try this... data = struct('ISPC_together', 0.2053, 'GSI_together', 0.0172); data(2) = struct('ISPC_together', 0.0243, 'GSI_...

más de 1 año hace | 0

| aceptada

Respondida
How to respond to update of axis data?
Hey @bethel o, yeah, it's possible. "YData" is not a property of figure or axes, ok? fig = figure; ax1 = axes(fig); h = plo...

más de 1 año hace | 0

| aceptada

Respondida
Plot data with months on X and numerical value on Y
See image below...

más de 1 año hace | 0

Respondida
How to save a fig file and re-open it with the same figure number?
Try this! f = figure(1000); ax = axes(f); plot(ax, randn(1001, 1)) % Let's create some data visualization! savefig(f,'figu...

más de 1 año hace | 0

| aceptada

Respondida
Changing variable from appdesigner in matlab script
You can use assignin to send the variable to Matlab base workspace. % Suppose that you have a variable named "app.myVariable" ...

más de 1 año hace | 1

| aceptada

Respondida
MATLAB 2022a copyobj not working properly
What release are you using?! I tested in R2021b and its ok. See app attached.

más de 1 año hace | 0

Respondida
How to capture frame (image) using webcam at specific time interval (e.g. at 100ms or 10 frames per second) in matlab app designer?
Wow... it is simple, but you have a lot of code to write. :) You need to create some properties in your app to store the images...

más de 1 año hace | 1

| aceptada

Respondida
Confused how to run a loop for each individual value of Nd1?
I don't know if it is exactaly what you want, but... Nd1 is an array, so you have to acess every element in your array to do th...

más de 1 año hace | 0

Respondida
Could not recognize the format of the date/time text
You can't. The precision of datetime is milliseconds, but you can use regexp. inData = "07/04/2021 07:55:27.502.118"; regData...

más de 1 año hace | 0

Respondida
How to make deployed program directory not read only
In this case you should use AppData as default installation folder (see below). If this is not a solution, then you should put i...

más de 1 año hace | 0

| aceptada

Respondida
How to create a log_file.txt that stores my outputs and variables?
You have a lot of possibilities - writetable OR writematrix OR writecell OR save.... See the functions documentation. % if you...

más de 1 año hace | 0

Respondida
Multiple y axis on app designer
I think you can create an invisble figure (the old one) and use copyobj to copy the lines for your uiaxes. Or you can create you...

más de 1 año hace | 1

| aceptada

Respondida
App Developer - Mouse Hovering Over Surf Plot in UIAxes Causes Extreme Lag
Mouse over the plot will not affect the performance of the plot if you disable interactions. Try this at the startup of your s...

más de 1 año hace | 0

| aceptada

Respondida
How to create ROI object handle?
Replace imrect for images.roi.Rectangle. See the first example of the doc - https://www.mathworks.com/help/images/ref/images.roi...

más de 1 año hace | 0

Respondida
Hide axis from plot with image
fig = figure; ax1 = subplot(2,2,[1,3], 'Parent', fig); I = imread("YourImage.png"); image(ax1, I) set(ax1, 'XTickLabel',...

más de 1 año hace | 1

| aceptada

Respondida
Matlab App Erroneously detecting infinite loop
It sounds like a limitation of the foor loops. For example, if you create e for loop from 1 to a BigNumberAlmostInfinite you wil...

más de 1 año hace | 0

Respondida
App timer slows when mousing over plot
uifigure is not the best idea if you are looking for performance... see other posts about it and maybe you gonna use the old fig...

más de 1 año hace | 1

| aceptada

Respondida
App starts without all components populated or being ready to use
I had this issue... so... (1) Open your app (all .mlap files) in the AppDesigner of this new release of Matlab, save it and the...

más de 1 año hace | 0

Respondida
Add just one checkbox node to a TREE (app designer)
No. Each type of Tree object supports a different set of properties. For a full list of properties and descriptions for each ty...

más de 1 año hace | 0

Respondida
Can I Use MinPeakProminence and MinPeakDistance at the same time?
Yeah, sure. It's possible. Take a look at documentation of findpeaks. If you specify a location vector, x, then 'MinPeakWidth'...

más de 1 año hace | 0

Respondida
Store prime and non-prime numbers in two diferent vectors from a .txt
% x = load('Natural_numbers.txt'); x = [1, 11, 21, 23, 25, 27, 29, 30, 31, 44]; idx = isprime(x); Prime = x(idx) nonPri...

más de 1 año hace | 0

| aceptada

Respondida
Round to nearest ones place value ex ante
Lim_down = 3700; Lim_up = 3706; x = randi([Lim_down Lim_up]) Lim_center = mean([Lim_down, Lim_up]); if x < Lim_c...

más de 1 año hace | 0

Respondida
How to save pictures individually from sequence of pictures in its variables.
Hey @Pooria Samandi, just create a cell array "imageArray"... myFolder ='C:\Users\poori'; filePattern = fullfile(myFolder, ...

más de 1 año hace | 0

| aceptada

Respondida
Indexing through a structure to get subsets of data with no looping
Look... why you don't want to use a loop?! It's something that you can't avoid sometimes. The result you are looking for is weir...

más de 1 año hace | 0

| aceptada

Respondida
AppDesigner : divided UI code in several .mlapp files
No, it's not possible. But you can use uitabgroup to deal with it.

más de 1 año hace | 0

Respondida
Make the dropdown already scrolled down to the bottom in app
It's an old question, but maybe this answer helps someone. I don't know which version of Matlab you used, but I just tested in R...

más de 1 año hace | 0

Respondida
Issue running my own standalone app
It's an old question, but the answer could help someone. I had the same problem with a standalone app that was installed in more...

más de 1 año hace | 0

Cargar más