matlab-guide

Transformation with High Pass Filter [closed]

。_饼干妹妹 提交于 2019-12-06 16:29:12
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I Read the image 'abc.jpg' im MATLAB and covert its data type to double.Display the image. Store the size of image in M and N. All the loops of x, y, u and v runs till image size. Now I want to know 1:how Multiply the above input image by (-1)^x+y To Center the Transform To U = M/2 And V = N/2 . 2:multiply it

Uitable over whole window width

人走茶凉 提交于 2019-12-06 16:19:17
I would like to programmatically (or in GUIDE) fix the matlab-uitable to be the whole width of the panel on initialisation. How can I do this? All I've managed is to change the size in pixels of single columns. I would like the uitable to be 100% the width of the page at that time. When my window is in minimized form the GUI looks fine, but when I maximize it, the uitable is only about half the width of the page. (The uitable's height is not that of the whole panel though, around 1/2 of the whole page) The GUI is written in matlab-guide . This is the code that I am trying right now: data =

Matlab uitable data selection

与世无争的帅哥 提交于 2019-12-06 13:57:27
I have Uitable with data read from a AScii file. I want to select columns using mouse and also using checkboxes. I tried a lot but i cannot figure out how to select uitable column using mouse and getting that data. Also I am trying to insert checkbox in the last row of the uitable, so when user selects checkbox, particular column is selected. Any idea? You should edit the CellSelectionCallback and the CellEditCallback properties of your table. set(myTable,`CellSelectionCallback`,@CallBack) In order to see what columns/rows were selected, use the event data that you receive in your callback.

Show CPU cores utilization in MATLAB

☆樱花仙子☆ 提交于 2019-12-06 05:09:54
问题 Is anyway (any function etc) to show CPU cores utilization in MATLAB in a GUI likes that we have in Task Manager of windows (Performance Tab)? Thanks. 回答1: To my knowledge, there are no Matlab function which can access the system properties at the level of the process usage. To get this information one must call external classes. A search on internet can fetch you some Java classes which can query the process properties. The advantage of the Java approach is it is more likely to be cross

Matlab Calling 'Import Data' with GUI Button

梦想的初衷 提交于 2019-12-06 01:59:57
I'm working in a GUI in Matlab R2014b that uses some data from a txt file, so i want to call the 'Import Data' window to permit the user select the data from a file when pushing a button. Is there a way to do this? The function uiimport is used for importing data interactively. This seems to be what gets called by Matlab's toolbar's "import data" button. Excerpting from the documenatation, uiimport opens a dialog to interactively load data from a file or the clipboard. MATLAB® displays a preview of the data in the file. uiimport('-file') presents the file selection dialog first. S = uiimport(_

parse text file in MATLAB [duplicate]

三世轮回 提交于 2019-12-05 21:30:46
This question already has an answer here: Parse file in MatLab 1 answer How can I parse file in MATLAB? The data in the text has this format: p 15.01245 20.478 12.589 58.256 n 16.589 87.268 52.367 46.256 2.589 58.02 I want to store each data in separate array ( i.e ; store data under letter p in array 1, and data under letter n in array 2). any help? Here is another solution: fstring = fileread('test.txt'); % read the file as one string fblocks = regexp(fstring,'[A-Za-z]','split'); % uses any single character as a separator fblocks(1) = []; % removes anything before the first character out =

How can I fill an area below a 3D graph in MATLAB?

人盡茶涼 提交于 2019-12-05 10:05:57
I created the following 3d plot in MATLAB using the function plot3 : Now, I want to get a hatched area below the "2d sub-graphs" (i.e. below the blue and red curves). Unfortunately, I don't have any idea how to realize that. I would appreciate it very much if somebody had an idea. gnovice You can do this using the function fill3 and referencing this answer for the 2D case to see how you have to add points on the ends of your data vectors to "close" your filled polygons. Although creating a pattern (i.e. hatching) is difficult if not impossible, an alternative is to simply adjust the alpha

Matlab GUI using GUIDE : Want to dynamically update graphs

本小妞迷上赌 提交于 2019-12-05 03:33:22
I've written a Matlab script that reads in data using a virtual COMM port in real-time . I've done a significant amount of signal processing in an mfile. Next, I felt the need to have a compact GUI that displays the information as summary. I only recently started digging and reading more of Matlab's built-in GUI tool, GUIDE. I've followed a few tutorials and am successfully able to get my graphs to display on my GUI after a button-press . However, I want the GUI to update in real-time . My data vector is constantly updating (reading in data from the COMM port). I want the GUI to keep updating

Transformation with High Pass Filter [closed]

坚强是说给别人听的谎言 提交于 2019-12-04 22:11:22
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I Read the image 'abc.jpg' im MATLAB and covert its data type to double.Display the image. Store the size of image in M and N. All the loops of x, y, u and v runs till image size. Now I want to know 1:how Multiply the above input image by (-1)^x+y To Center the Transform To U = M/2 And V = N/2 . 2:multiply it with ideal HPF(High Pass Filter) with value of D=50. where D is the radius size of Ideal HPF. After

How to display a scrollable grid of images in matlab GUI

我是研究僧i 提交于 2019-12-04 13:27:44
问题 How can i display a scrollable grid of images in matlab GUI? I want something similar to what is shown below This stackoverflow post describes a way of displaying images in a uitable by setting the 'String' property to an HTML code pointing to an image. But this requires me to save the images to disk which is not an option i would like as these displays are fired up dynamically. It would also be nice, if i could add a checkbox inside each image so the user can select a subset of them. 回答1: