Beantwortet

How to make a figure fit a screen on a 2nd monitor?

I've found that setting the outerPosition property can be awkward, especially with a taskbar in the mix. % Get pixel position o...

How to make a figure fit a screen on a 2nd monitor?

I've found that setting the outerPosition property can be awkward, especially with a taskbar in the mix. % Get pixel position o...

mehr als 3 Jahre vor | 2

Beantwortet

How do I make a figure full screen programmatically in MATLAB?

If you want to account for the taskbar (I found this in the comments of some other question): fh = figure(); fh.WindowState = ...

How do I make a figure full screen programmatically in MATLAB?

If you want to account for the taskbar (I found this in the comments of some other question): fh = figure(); fh.WindowState = ...

fast 4 Jahre vor | 27

Frage

Calling python scripts that use "from" keyword to import keras from MATLAB

I've set my pyversion as the command-line-downloaded executable of python, and I have added the directory containing all site-pa...

fast 4 Jahre vor | 0 Antworten | 0

Beantwortet

How to change python path?

After some research, I've discovered that MATLAB needs to be able to find the correct version and install of python, but adding ...

How to change python path?

After some research, I've discovered that MATLAB needs to be able to find the correct version and install of python, but adding ...

fast 4 Jahre vor | 3

Frage

Why would py.importlib.import_module('keras') fail?

% Specify Python Executable Library. pcPythonExe = 'C:\Users\dmattioli\AppData\Local\Programs\Python\Python37\python.exe'; [ve...

fast 4 Jahre vor | 0 Antworten | 1

Frage

How to change python path?

I'm trying to call a python script that imports tensorflow. I point python to my Anaconda-built python executable and I add the ...

fast 4 Jahre vor | 2 Antworten | 1

Frage

How to implement a setter restriction?

When making a user-defined class myClass that inherits from matlab.mixin.SetGet, how can I restrict the Set for a property prop1...

etwa 4 Jahre vor | 1 Antwort | 0

Beantwortet

In MATLAB, how do I obtain information about my screen resolution and screen size?

Res = get(0,'ScreenPixelsPerInch') This functionality might have been added since MathWorks originally posted their own answer ...

In MATLAB, how do I obtain information about my screen resolution and screen size?

Res = get(0,'ScreenPixelsPerInch') This functionality might have been added since MathWorks originally posted their own answer ...

mehr als 4 Jahre vor | 0

Frage

How to move cursor line within edit box of uicontrol?

I've a string that isn't always viewable within my edit box. I'd like to be able to move the cursor and/or adjust the view of th...

mehr als 4 Jahre vor | 1 Antwort | 0

Frage

Constraining imline to points of an existing imellipse?

I'd like to draw a line and then be able to adjust the endpoints of that line while restricting them to the vertices of an ellip...

mehr als 4 Jahre vor | 1 Antwort | 0

Frage

How to plot the second point of line at mouse location

I'd like to plot a line defined by two points, one that is already selected in [x,y] space, and the other that is unselected, bu...

mehr als 4 Jahre vor | 1 Antwort | 0

Frage

How to create a triangulation from a list of edges and list of nodes?

I'm beginning with a triangulation so that I know this graph is actually composed of non-intersecting edges that define a set of...

mehr als 4 Jahre vor | 2 Antworten | 0

Frage

How to plot a graph without intersecting edges?

Can you input nodal coordinates to the graph generating function or specify in the plotting function to not have intersecting ed...

mehr als 4 Jahre vor | 0 Antworten | 0

Frage

How to create this monotonically increasing list of numbers?

I want to use a vector V of length N V = [1 1 2 1 2 3 1] to create a monotonically increasing list L, where the values o...

mehr als 4 Jahre vor | 2 Antworten | 0

Frage

How to place a dialog box in a GUI?

For all built-in MATLAB dialog box functions (errordlg, helpdlg, warndlg, etc.), can you place these dialog boxes into your GUI ...

fast 5 Jahre vor | 1 Antwort | 0

Frage

How to retrieve handles (data) of MATLAB GUI from saved .fig file?

I need to retrieve about 100 saved GUI's (templated from Guide), so I'd rather not open each file and manually load the data int...

fast 5 Jahre vor | 1 Antwort | 0

Frage

How to cancel impoly, imcrop, etc. in GUI?

Suppose that there is an image in an axis of a GUI (created via guide) and a button that calls imcrop. After pushing this button...

etwa 5 Jahre vor | 0 Antworten | 0

Frage

How to use a parfor loop inside a for loop?

I have a for loop with variables that have dependency. Within that loop I would like to use parfor to perform a costly operation...

etwa 5 Jahre vor | 1 Antwort | 0

Beantwortet

How to identify a specific region of an image?

I think this is an interesting question and I think I have a good solution so I will answer my own question. Since this is a ...

How to identify a specific region of an image?

I think this is an interesting question and I think I have a good solution so I will answer my own question. Since this is a ...

etwa 5 Jahre vor | 0

Frage

How to identify a specific region of an image?

I have some ultrasound movies that I have converted to sets of image frames. I'm trying to adjust the contrast of the region tha...

etwa 5 Jahre vor | 1 Antwort | 0

Frage

How to plot a cropped image in another axis within the same figure?

If my figure has two axes/subplots and one of them plots an image, how can I use imcrop on that image and plot the cropped image...

etwa 5 Jahre vor | 1 Antwort | 0

Frage

Create a method that overloads a property?

I have an established object I would like to overload one of its properties by creating a method of the same name. My idea fo...

mehr als 5 Jahre vor | 1 Antwort | 0

Frage

How to replace elements in an array with the indices of the array's sorted, unique values?

This is what I have (below). I am wondering if there is a better way of accomplishing the aforementioned task. Also, is there a ...

mehr als 5 Jahre vor | 3 Antworten | 1

Frage

Fast way to retrieve nonzero entries of each row in a sparse matrix

I'm working with very large sparse matrices (10's of thousands to millions of entries) and I'd like to efficiently retrieve and ...

mehr als 5 Jahre vor | 1 Antwort | 0

Frage

How to split a vector into unequal sections?

I know that some similar questions have previously been asked, but I think this problem might be a little unique. For some conte...

fast 6 Jahre vor | 2 Antworten | 0

Frage

How to use ismember in a cell array?

I would like to change the value of some value within a cell array that has only numeric data, preferably not using loops becaus...

etwa 6 Jahre vor | 2 Antworten | 0

Frage

Is it better to use the dimensional cat function(s) versus using brackets?

I've timed the various methods of concatenating vectors and I'd like someone to interpret the results a little bit. Knowing that...

etwa 6 Jahre vor | 2 Antworten | 0

Frage

How to rotate rows of a matrix?

I have a matrix A where each row of A has only one value of 1 and the rest are some other number. A = [9 8 7 1; 9 1 8 7; 9 8 ...

etwa 6 Jahre vor | 3 Antworten | 0

Frage

How can I index using cell arrays?

A = randi(100,1,8); % Some array that I want to index into. B = {[1;2;3];[4;5];[6];[7;8]}; % Cell array with indices. %I w...

etwa 6 Jahre vor | 1 Antwort | 0

Frage

How do I get all non-unique occurrences?

MATLAB's unique function only returns the non-unique indices to either the 'first' or 'last' occurrences of unique elements/row...

etwa 6 Jahre vor | 1 Antwort | 0