Answered
App Desginer, Select point in image to update Value Changing variable
I made an app that used a listener to retrieve the current point on an axes and update a uilabel with the value in a response to...

10 months ago | 0

Answered
How do I read each frame of a video?
You can use a while loop as shown in the documentation here. Note, you can save a 3D/4D matrix of the video if memory permits b...

10 months ago | 0

| accepted

Answered
Tracking Pedestrians from a Moving Car
Here the Kalman filter object is created % Create a Kalman filter object. kalmanFilter = configureKalmanFilter('ConstantVeloci...

10 months ago | 1

| accepted

Answered
How to rearrange 2x5 matrix while keeping the size the same?
x = [1, 5, 9, 4, 8; 3, 7, 2, 6, 10] x2 = reshape(sort(reshape(x,1,[])),size(x,1),size(x,2))

10 months ago | 0

Answered
Best way to get date and time inputs from user and save as a datetime variable
% construct the data subset timerange startDateTime = datetime(s.StartDate + " " + s.StartTime, 'InputFormat', 'yyyy-MM-dd HHmm...

10 months ago | 0

Answered
recording a plot as a video & including a suitable legend
continue_loading = 1; v = VideoWriter('Z:\MATLAB\figures\example.avi'); v.FrameRate = 60; open(v) % hold box on grid on...

10 months ago | 0

| accepted

Answered
uiprogressdlg using the CancelRequested function to terminate the loop.
Everytime you run the line di = uiprogressdlg(app.progress,'Title','Progress Bar','Message','Progress','Cancelable',1); A new ...

10 months ago | 0

| accepted

Answered
recording a plot as a video & including a suitable legend
Legend Problem Making up data for example eps_bar = rand(1,30); s_bar = rand(1,30); k=1; You could get the handle of th...

10 months ago | 0

Answered
can someone help me to measure the avgferet, avgminferet and area of the edges in my image in this code
imageData = imread('C1_L1_WDa.jpg'); imshow(imageData) figure [rows, columns, numberOfColorChannels] = size(imageData); ...

10 months ago | 1

| accepted

Answered
Error Troubleshooting Classification Models
I believe you meant this: mdl = fitcdiscr(Tbl, "Number") instead of mdl = fitcdiscr(Tbl, Number) Edit: Also what does your t...

10 months ago | 0

Answered
Comparison of values and classification
Generate table: matrix = rand(1084,4); % making 4 columns because I don't feel like creating 14 column names Tbl = array2tab...

10 months ago | 0

Answered
Script for a behavioral experiment
You could create an app with App Designer. See video below: How to Build a GUI in MATLAB using App Designer You could display ...

10 months ago | 0

Answered
Select last numeric character(s) of the string
output = 'sucrose: 10'; numbers = str2double(extract(output, digitsPattern)) output = "sucrose10"; numbers = str2double...

10 months ago | 1

Answered
Putting a cell into a .mat file
save('test.mat', 'ImagesToSave')

10 months ago | 0

Answered
How to use data cursor mode to display data tips for multiple plots in a tiled layout?
If you are interested in the datatips information. You can acces the information from the Children subfield of the Scatter plot,...

10 months ago | 0

Answered
mapping between two different matrices
a=[1 2;3 4;5 6] b=[1 2 3;1 2 3;1 2 3;1 2 3;1 2 3] index = 3; output = yourmap(a,b,index) index = 6; output = yourmap(a,b,in...

10 months ago | 1

Answered
How to find max value for a function between 2 specified values
x = 0:0.1:2*pi; y = sin(x); plot(x,y) [maxvalue,index] = max(y(1:length(0:0.1:pi))) x(index)

10 months ago | 0

Answered
Find (local?) maxima when two maxima are adjacent to each other (maybe using islocalmax or findpeaks?)
If it wasn't on the edge, you could use the following: freq = [37 37 23 1 1 1]; m = islocalmax(freq,'FlatSelection','all') wo...

10 months ago | 1

| accepted

Answered
How to determine if the user closed the app window?
When you run the app in your main script, you could assign a variable to its handle. app = YourApp; You can check if it is del...

10 months ago | 0

| accepted

Answered
Increase column width of a Tiltedlayout
F = figure('Renderer', 'painters', 'Position', [65 200 1250 680]); t = tiledlayout(6,3,'TileSpacing',"compact"); [X,Y,Z] = pea...

10 months ago | 0

| accepted

Answered
In a video inserted in a UIAxis, fix the position once the app running and also, delete the edit buttons of zoom, pan, home...
You can uncheck "Toolbar:Visible" under app.UIAxes within the Component Browser. See image below.

10 months ago | 0

| accepted

Answered
Hello, I am trying to get the X and Y values from a Plot. This plot is generated from a loop, and the plot represents the boundary of an image..
% The image I am trying to read A = imread('Britain.png'); % The boundaries around the image BW = im2bw(A); [B,L] = bwbou...

10 months ago | 0

| accepted

Answered
Matlab app designer spectrogram
N = 1024; n = 0:N-1; w0 = 2*pi/5; x = sin(w0*n)+10*sin(2*w0*n); Executing the spectrogram function with an output does n...

10 months ago | 0

| accepted

Answered
How to draw 2d compass in 3d UIAxes
It is possible to place the compass rose in a 3D uiaxes. Did you want to plot something in addition to this? If so, you may have...

11 months ago | 0

| accepted

Answered
I have a problem with appdesigner, can you help me?
If the checkbox is checked, it would have a value of 1. Otherwise, it would have a value of 0. The value can be found with the ...

11 months ago | 1

Answered
Trying to plot a function with adjustable variables in app designer
2.) I have a function .m file that successfully graphs what I need it to. Is there a way for me to reference that in the app? Y...

11 months ago | 0

Answered
why is the text field in app2 not showing the value I want it to show..?
Please see app2 attached. I changed two lines. You did not have a uitextarea component called "EnterthenragainTextArea" but rath...

11 months ago | 0

| accepted

Answered
write a coordinate obtained by clicking on a graphic appdesigner
It looks like your callback event "WindowMousePress" may not be triggered. You could add a callback function to your UIAxes as s...

11 months ago | 0

| accepted

Answered
appdesigner : error in a code when playing frames of a video with a slider
It looks like you are using imshow with a double. imshow(app.AllFrames(:,:,:,idx),'Parent',app.video) If you have an 8...

11 months ago | 0

| accepted

Answered
how to pass matrix as argument from app to app 2 in app designer
See the link below and let me know if you have any questions. Share Data in Multiwindow Apps

11 months ago | 0

Load more