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.

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, as opposed to the AppDesigner tool or creating GUIs programmatically.

MATLAB is a high-level language and programming environment developed by MathWorks.

Additional sources of technical information on these topics include:

1363 questions
0
votes
2 answers

How to dynamically add edit boxes in MATLAB GUI?

I use the inputdlg function to display a dialog box in which the user writes in several edit boxes. The number of boxes depends on the value of a variable, so I can have 3 ou 11 boxes but I figured out how to update the number of boxes in the dialog…
Coriolis
  • 396
  • 3
  • 10
0
votes
1 answer

Matrix applications to image in GUIDE

I am trying to simply multiply a matrix to an image an get an output, and all of this has to be done in matlab GUIDE. I am not experienced in the language and due date is really soon, this is the code: function t1_OpeningFcn(hObject, eventdata,…
0
votes
1 answer

Updating MATLAB waitbar fails after first update

I am having a problem updating a waitbar in a MATLAB GUI. I created a simple example that works as expected. steps = 5; hWaitBar = waitbar(0, 'Testing...'); for i = 1:steps waitbar(i/steps, hWaitBar); pause(1); end close(hWaitBar); However…
Noren
  • 793
  • 3
  • 10
  • 23
0
votes
1 answer

matlab guis using GUIDE

I have a main GUI from which I can open several sub GUIs. I need to write a code such that when I open the sub GUIs, first sub GUI should be closed when I open the second sub GUI but the main GUI should remain open. Can anyone help me out with the…
ammu
  • 11
  • 1
0
votes
3 answers

Matlab GUI: referencing an existing object handle using a variable

I am currently working on my matlab final project for school. I consider myself fairly knowledgeable and proficient when it comes to programming.. but Matlab simply has TOO many oddities. The fundamental question (realized this after finding the…
mtotho
  • 52
  • 1
  • 11
0
votes
1 answer

How to merge two files into one text file?

I am trying to merge two text output file into one text file . file 1: fin=fopen('d://box1.txt','wt'); fprintf(fin,' Hello \n'); file 2: fin=fopen('d://box2.txt','wt'); fprintf(fin,'welcome \n'); Any thoughts?
mecaeng
  • 93
  • 2
  • 8
0
votes
1 answer

how to pass value among functions in MATLAB GUI?

I'm trying to convert an image file into a binary file, where I'm using 2 buttons in Matlab GUI. the first button it to browse the files then shows the file name on a static text, and the second button for saving it as a CSV file, and this is my…
user1275572
0
votes
1 answer

find edge in image

How can I detect the edges in an image without using method 'edge', with only using mathematical operations (matrix or Derived or div or any other)? Indeed, how can I rewrite the function edge by using the algorithm Canny or sobel or any other?…
user1263390
  • 187
  • 3
  • 4
  • 12
-1
votes
1 answer

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 complete this task. Does anyone can help me, or at…
Pedro R.
  • 93
  • 2
  • 9
-1
votes
2 answers

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 is supported and the port and board type are…
Pix
  • 1
  • 1
-1
votes
1 answer

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 files to .txt files (0.txt, 1.txt ......210.txt), the data type is 16bit…
-1
votes
1 answer

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 code: function dy=F(t,y,CurrentPos,j) m=[1.98854E+30…
-1
votes
1 answer

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 = input ('M = '); N = input ('N = '); epsilon = input…
-1
votes
1 answer

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) where color value as number is greater than 1.6155…
-1
votes
1 answer

How can i search an element in a row that repeat in the same row for an array?

I'm trying to get labels per row of an array to implement the RLE encoding, where the tag has the format [# in the array, number repeated in row]. I get an array of minimum 2x2 and maximum of 10 x 10. The objective is to know how many numbers are…