回答済み
Power over the total bandwidth doesn't equal the sum of powers over the sub-bandwidths
You can't do those operations in "logarithm world". You should convert it to linear using db2pow (if power unit) or db2mag (if v...

3年以上 前 | 0

回答済み
How to get the max value between two elements of two separate arrays?
Try this... a= [1,3,4,6]; b= [2,2,5,4]; max([a;b])

3年以上 前 | 1

| 採用済み

回答済み
How do I add a draw rectangle function to an image app?
Hey... you have to show your image in an uiaxes and create a handle to your ROI as property of the app, so you can draw your ROI...

3年以上 前 | 0

| 採用済み

回答済み
Take last n elements in vector
Try this... a = [1,2,3,4,5,6,7,8,9,10]; N = 3; % user_input range_a = a(end-N+1:end)

3年以上 前 | 0

| 採用済み

回答済み
splash screen for compiled application goes away before application launches
This an old question, but... (1) Unfortunately, there is no solution yet. I dealt with this by developing a splash screen app i...

3年以上 前 | 2

回答済み
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...

3年以上 前 | 0

回答済み
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...

3年以上 前 | 0

| 採用済み

回答済み
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...

3年以上 前 | 0

回答済み
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_...

3年以上 前 | 0

| 採用済み

回答済み
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...

3年以上 前 | 0

| 採用済み

回答済み
Plot data with months on X and numerical value on Y
See image below...

3年以上 前 | 0

回答済み
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...

3年以上 前 | 0

| 採用済み

回答済み
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" ...

3年以上 前 | 1

| 採用済み

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

3年以上 前 | 0

回答済み
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...

3年以上 前 | 1

| 採用済み

回答済み
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...

3年以上 前 | 0

回答済み
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...

3年以上 前 | 0

回答済み
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...

3年以上 前 | 0

| 採用済み

回答済み
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...

3年以上 前 | 0

回答済み
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...

3年以上 前 | 1

| 採用済み

回答済み
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...

3年以上 前 | 0

| 採用済み

回答済み
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...

3年以上 前 | 0

回答済み
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',...

3年以上 前 | 1

| 採用済み

回答済み
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...

3年以上 前 | 0

回答済み
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...

3年以上 前 | 1

| 採用済み

回答済み
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...

3年以上 前 | 0

回答済み
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...

3年以上 前 | 0

回答済み
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'...

3年以上 前 | 0

回答済み
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...

3年以上 前 | 0

| 採用済み

回答済み
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...

3年以上 前 | 0

さらに読み込む