Questions tagged [matlab-guide]

This tag is NOT for "guidance" on MATLAB questions. GUIDE, is a graphical user interfaces (GUI) design environment in MATLAB. This tag relates to the development of MATLAB applications with a GUI using the interactive GUIDE layout editor.

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

doppler waveform trace and Plotting

I need help in image processing of the Doppler image. I made the algorithm to rect the region of interest trace the boundary of the waveform and plot it. image = imread('M.TIF'); % Convert the image ...
Cynthia Imtiaz's user avatar
0 votes
0 answers
10 views

Why are properties stored in "event.Pro​pertyEvent​.AffectedO​bject" instead of objects?

Listen for Changes to Property Values tell us :Define Callback Function for Property Event The listener executes the callback function when MATLAB® triggers the property event. Define the callback ...
bokabokaboka's user avatar
0 votes
0 answers
20 views

How can I run Python's Matlab Engine API on a Server

I have access to Matlab on my PC and able to run my Matlab Function on the Matlab Engine API on Python. My question is how can I do the same on a Hosted Server and run the Fucntion. How do I install ...
Abdullah Aftab's user avatar
0 votes
1 answer
31 views

Curve smoothing in MATLAB

How can I smooth this curve in MATLAB? I have tried smoothdata() with all options but they typically result in a straight line. Same with fit(). How can I get rid of the bumps?
Hans's user avatar
  • 361
0 votes
0 answers
17 views

Find Wc (Angular cutoff frequency) from second order low pass filter in MATLAB

I have 2nd order low pass filter code for filtering data in Matlab GUI. To run this code I need to write value of wc(Angular cutoff frequency, rad/s), k(damping factor), and Sampling time(which matlab ...
user22190922's user avatar
3 votes
1 answer
34 views

Matlab slider uicontrol: make a slider "loop back" for angles reaching 2pi or zero

I am making a user interface with an input that represents an angle, to be set with uicontrol slider elements. It is expected that angles can wrap around the circle, so I would like that when the user ...
Philippe Garteiser's user avatar
-1 votes
1 answer
43 views

Matlab function parser

I need to validate a function of 'x' on matlab using a string field from a guide object. It must only have numbers, operations and 'x'. I tried many hours and I could not build a piece of code to ...
Pedro R.'s user avatar
0 votes
0 answers
26 views

Differential Encoder Modulo8 Adder in MATLAB

I'm trying to make a 3-bit differential encoder in matlab. My code works, but as I increase the data size, it gets very slow, so I want to write it without a for loop, but I couldn't find how to do it....
Alexa's user avatar
  • 1
0 votes
0 answers
20 views

how to access to a array cell or a structure field in a matlab matrix thanks to the value of a variable?

I have a structure called : time_record_1 and a variable called field which is equal to "d3", and I want to do : time_record_1.field = value (the field d3 already exists). When I do it, it ...
Owen Sgbd's user avatar
0 votes
0 answers
133 views

How to convert .mat to any image format(.png,.jpeg,..jpg, .jpeg, .jfif, .pjpeg, .pjp,.webp, .bmp,.tif, .tiff SVG) using matlab

I have a dataset whose images extension are in .mat. I found a solution in Matlab to solve this issue
M Azam Khan's user avatar
0 votes
1 answer
62 views

How to make a GIF from a set of MATLAB images

I have an array of values which I turn into a color image like so: my_img = imagesc(my_data(:,:,tidx)); axis off; colormap('default'); c=colorbar; c.FontSize=26; c.FontWeight='bold'; I want to know ...
nikebol906's user avatar
0 votes
0 answers
32 views

Why am I getting this The initial magnification of the image is set to 'fit' in a docked figure MATLAB error

I am following this project https://github.com/janstenum/GaitAnalysis-PoseEstimation. I have ran the first command and made it all the way through until I ran into this error: Warning: The initial ...
Sritej Padmanabhan's user avatar
0 votes
0 answers
144 views

Error while evaluating UIControl Callback on pushbotton

I am trying to create a button in GUI matlab and call a function when it is pressed. This code it is not working the code is: function pushbutton2_Callback(hObject, eventdata, handles) % hObject ...
AFIF BHIAN A's user avatar
0 votes
0 answers
81 views

set input value from GUI into global variable in matlab

i have problem with matlab gui that when i set it global variable not work and not shown in work space table also i would to use it in more than function how to use it i tryed this code but not worked ...
elgamal's user avatar
0 votes
1 answer
1k views

Plot bode inside UI axes of Matlab's app designer

I am creating a UI on app designer and I want to plot a bode in my UI.axes. This figure contains two plots (magnitude, phase) and what I want to do is to plot each plot in different ui.axes. I've ...
Shorty Beast's user avatar
-1 votes
2 answers
638 views

Interfacing Matllab with Arduino Nano CH340

I am trying to interface an Arduino Nano CH340 with Matlab but keep getting this error: Error using ArduinoMatlabExampleYT (line 11) Cannot program board Nano33BLE (COM3). Please make sure the board ...
Pix's user avatar
  • 1
0 votes
1 answer
514 views

MATLAB GUI - how to make a button change a value then close window

I am doing data processing from experiments, some data cannot be detected and given a 'type'. For this data I have made a GUI that plots the relevant data and allows the user to manually specify what ...
Philip's user avatar
  • 16
1 vote
0 answers
36 views

Converting from The vector field corresponds to image coordinates. x,y,z grid into vector field specified per voxel

I have a 501x501x83 single matrix which contains the vector field of each point. . This vector field is corresponds to image coordinates. x,y,z grid for the vector field in image coordinates. I want ...
Hussam Jassim's user avatar
-1 votes
1 answer
157 views

How to convert group of .dat file has 16bit integer data to group of .txt file?

I have a group of .dat files I need to convert to .txt files. I have a directory called "data" that has "210" files (0.dat, 1.dat, ......210.dat), I want to convert these .dat ...
ABDULWAHHAB ESSA HAMZAH's user avatar
0 votes
1 answer
101 views

Matlab standalone application with parallel toolbox (parfor loop in deployed applications)

I use Matlab R2016a and guide. I created an application that uses parfor loop. It works great in Matlab environement, but when deployed (standalone application) the time the parfo loop takes is the ...
Belkacem's user avatar
0 votes
1 answer
952 views

Matlab App Designer Callback function keeps resetting plot with a double click to position it is first set at

I recently converted an app originally designed in GUIDE into App Designer. I did not write the original code, and due to the conversion I'm at a bit of a loss on how to even search for an answer to ...
etgriffiths's user avatar
1 vote
1 answer
262 views

Is it possible to plot a figure with arrows as shown in image attached in MATLAB?

Can I draw such a plot in Matlab? If not what would be the right software to draw it? Later, I need to paste figure in MS word file.
Ayesha Rahim's user avatar
1 vote
1 answer
414 views

Can I include a stem plot in MATLAB App Designer

I'm trying to create a random signal generator with stem plot in Matlab App Designer, and when I click the 'Generate' Button - nothing happens. Below is the code I added in the generated code from the ...
ckdirecto's user avatar
3 votes
1 answer
2k views

Is there a way to change the current axes object in matlab without affecting the uistack ordering?

Matlab provides a function called uistack for arranging UI objects in the depth direction (which objects are in front of which others, etc). There is also a function (axes) for setting the current ...
Jed's user avatar
  • 193
1 vote
0 answers
231 views

How to rescale a STL surface in Matlab

I've imported a STL file in Matlab with the function stlread. My question is, how can we rescale it with an arbitrary size factor (for instance, suppose you want to halve its dimensions)? Here there ...
Kinka-Byo's user avatar
  • 127
0 votes
1 answer
213 views

Creating 2 legend boxes on a single graph in MATLAB?

I am trying to create a chart with 2 legend boxes but the first time I call the legend function it disregards that and only creates the second one. I'm not sure what I am doing wrong or how to fix ...
Ammar Ahmed's user avatar
-1 votes
1 answer
128 views

Suggestion to solve 'NaN' in matlab. Dealing with large and small numbers in Matlab

I am trying to make a model of planets' movement plot it in 3d using Matlab. I used Newton's law with the gravitational force between two objects and I got the differential equation below: matlab ...
Bashar El-Mouhammad's user avatar
0 votes
1 answer
96 views

Sort JSON by values in MATLAB

I would like to sort my values in the JSON file order by "createdAt" and use these values in the plot function. As you can see this column stores date value so I've converted it. And I've ...
Yunus Haznedar's user avatar
0 votes
1 answer
366 views

How can I read value from a json file and use it in the MATLAB plot function?

I would like to read a value from JSON file and use these values in the plot function. So I did some research and realized that there is a lib named "loadjson" and I've added into my MATLAB. ...
Yunus Haznedar's user avatar
1 vote
1 answer
1k views

How to zoom in or magnify programmatically in MATLAB plot graph?

I'm working on a script, where I need to show graph of Fixed Point Iteration and want to zoom in where lines are plotting. Graph is done, it is plotting lines on my graph, problem is that I want to ...
user13927150's user avatar
0 votes
1 answer
334 views

How can I get around this error using deval with dde23 in MATLAB?

I am trying to plot a graph between k(t) and k(t-1) of the solution of my delay differential equation. I am pasting the code: % Defining the variables: X = 0.2; M_C = 1.523; a = 15; sol = dde23(@(k,t,...
Abhishek Singh's user avatar
-1 votes
1 answer
60 views

How to avoid "surf error X, Y, Z, and C cannot be complex"

I've already tried to change x, y, z but it still does not work. The error said that there is problem in (line 72) surf(t/sigma,x*sqrt(P/sigma)/sqrt(phi),abs(Y(:,1:M))); My full code is: clc M = ...
Alfin Edo's user avatar
0 votes
1 answer
225 views

How to pass the numerical values inputted from a GUI to a .m file?

I'm trying to write a code in my .m/ GUI file that can pass a certain value obtained from an "edit text" field (called "edit 1") in GUI when I press a push button - to a .m file. ...
yacika's user avatar
  • 11
0 votes
2 answers
2k views

How do you make a MATLAB's `uifigure` appear in the center of the screen?

One can easily use the Position property to place a uifigure in the specified location of the screen. E.g., fig = uifigure('Position',[1,1,300,300]);. Is there any way to place it immediately on the ...
ashkan's user avatar
  • 476
1 vote
1 answer
1k views

Creating a dropdown menu in inputdlg box

I have this Matlab code: prompt = {'Enter period:','Enter frequency:'}; dlgtitle = 'Input'; dims = [1 35]; definput = {'3000','10'}; answer = inputdlg(prompt,dlgtitle,dims,definput) I want to create ...
A.Sim's user avatar
  • 91
0 votes
0 answers
153 views

Any way to make a global wrapper code for all callbacks in App Designer?

I am in the process of migrating a GUI I created using MATLAB's GUIDE to App Designer (2019b). In GUIDE, I added code to the main function that would wrap around any action taken using the GUI. The ...
David K's user avatar
  • 1,296
0 votes
1 answer
125 views

Fourier Sine Series issue: Dot indexing is not supported for variables of this type

Here is my code: clearvars; clc; close all; %Define the domain: l=1; %and consider, say, 4 periods x=linspace(-4,4); %Define the number of terms to consider n_tot=50; %Initialize the vectors ...
Ryan Krieger's user avatar
2 votes
0 answers
26 views

Matlab Engine API OpenSingleUseFunction() and OpenEngineFunction() timeouts in 2 minutes

When I launch the Matlab tool in Windows machine, the tool launches but it is in "Initializing" phase for 4-5 minutes. The tool will not respond to any user commands. The issue could be due to usage ...
user avatar
1 vote
1 answer
524 views

Matlab Precision is only 8 digits?

Quoting from: https://www.mathworks.com/help/symbolic/increase-precision-of-numeric-calculations.html By default, MATLAB® uses 16 digits of precision. But why when I write 900000000+2 (8 zeros ...
user avatar
2 votes
1 answer
1k views

Matlab-GUI warning when using parfeval(): "Unable to save App Designer app object."

I am trying to call parallel functions within my Matlab-GUI by pushing a startbutton. For the beginning I tried to call one single function ("ReadTwinCAT") but I'm always getting the following error-...
timosmd's user avatar
  • 159
0 votes
1 answer
40 views

Graphing functions while varying one parameter

I have a Matlab function, and I want to graph it while varying a certain parameter from 100 to 1000 it goes like this: [c, errorrange, i] = function [g1, g2, x]; I want to graph x and c while varying ...
ProgrammingGuy's user avatar
-2 votes
1 answer
217 views

MATLAB plot of 2 variables defined by an equation [closed]

I have the following query. I want to plot in MATLAB the following equation : i + s - ln(s)/sigma = constant (i and s are variables) for a given value of constant and sigma. The equation is between ...
B747's user avatar
  • 21
0 votes
1 answer
90 views

How to run a gui from another gui tab in matlab?

I am unsure of how to call up and run a separate GUI from my main GUI homepage. I am able to open it using uiopen(' ') but I am trying to get it to automatically run it if possible. I've created all ...
c beginner's user avatar
0 votes
1 answer
208 views

How can I display a quiver plot between two cross-correlated images?

I have written a code in MATLAB which allows me to automatically crop regions of interest in one image, and perform cross-correlation with a second image. The correlated regions are identified by a ...
ScottishSalmon's user avatar
-1 votes
1 answer
73 views

Retrieve column name based on cell value using matlab and excel

I use matlab software for programming language. I stored my data first is color as column & second value as number from Matlab to excel file. How can I retrieve color name (column / text /string) ...
Mochammad Fariz Syah Lazuardy's user avatar
0 votes
1 answer
136 views

How to declare inheritance of uicontrol objects in MATLAB

I'm learning how to programmatically create an app in MATLAB with a graphical user interface. I'm using MATLAB 2015a. I don't understand why I am getting this error: Error using GuiTitle The ...
rebecca's user avatar
  • 113
0 votes
0 answers
236 views

How to Convert raster in tiff file in Matlab

I have the Matlab code for hdf5 image as given below which convert the hdf image into the output image (temperature K) in png format as shown. Can anyone guide me how to modify the code so that the ...
Sikandar Ali's user avatar
0 votes
1 answer
157 views

What are the steps to upgrade old MATLAB code files? [closed]

I'm currently using MatLab 6.5 (it's a 2004 version), because the custom code files I need aren't compatible with newer versions. I'm wondering what are the necessary steps to update those files. ...
kekkodiaz's user avatar
1 vote
1 answer
448 views

MATLAB gui plots the data in a new figure instead of specified axes

I am developing a MATLAB GUI which is supposed to get serial data and plot it after processing. I use bytesavailabefcn a callback function which is executed when a pre-specified number of bytes (...
Raja Paue's user avatar
0 votes
2 answers
934 views

How can I run Matlab .m file repetitive in background?

I have project that was wrote in MATLAB. It has Main file like Main.m, I want to run Main.m repetitive every 1 Second in background. I don't want to see any display and opening windows from MATLAB. ...
Alexanov's user avatar
  • 125

1
2 3 4 5
28