Question

Passing "handle" for variable to low-level functions

Hello all, So a very similar question was asked here in 2012, and the answer was 'no', but I wanted to find out if there was a...

20 Tage ago | 0 answers | 0

Question

Using 'doc' on overloaded/overridden classes: Help only shows the Matlab class documentation

Hello all, I have what is hopefully a simple issue to remedy. I have created a custom class that turns out to overload some Ma...

21 Tage ago | 1 answer | 0

Question

[Plotting] Two x and y axes for the same data, with different units, and axis equal

Hello all, I have asked a similar question before, but have yet to find/create a satisfactory solution. I am attempting to plo...

etwa ein Monat ago | 1 answer | 1

Question

Accessing gpuDevice WITHOUT resetting it, and without carrying around a gpuDevice handle, or declaring a global

Hello, I have a question which sparked the issue I am having here: I want to access my gpuDevice properties, namely the Availa...

3 Monate ago | 1 answer | 0

Question

Checking if persistent variable exists on GPU: check if 'data no longer exists on the GPU' for a variable.

Hello, I am running into an issue if I have persistent variables that I am storing as GPU arrays. This is especially useful if...

3 Monate ago | 1 answer | 0

Question

Reduction variables on the GPU II and arrayfun: cannot assign to parent function variable?

Hello, This is (hopefully) a simple reduction variable question for performing parallel GPU operations onto a single value. I...

4 Monate ago | 1 answer | 0

Question

Setting object properties without returning the object using obj = obj.myfun(obj,argin)

Hello all, I have a syntax question. I want to be able to set or add to properties of a custom class, but without using the cu...

4 Monate ago | 1 answer | 0

Question

Using reduction variables on the GPU: arrayfun or other options

Hello all, I am trying to figure out whether/how to use a reduction variable as the output of an arrayfun performed on the G...

6 Monate ago | 1 answer | 0

Answered

Error when using uigetdir() in deployed MATLAB application (java.lang.IllegalArgumentException: eval requires a valid MCR id when running in standalone mode)

I am also still seeing this issue with Update 4.

Error when using uigetdir() in deployed MATLAB application (java.lang.IllegalArgumentException: eval requires a valid MCR id when running in standalone mode)

I am also still seeing this issue with Update 4.

8 Monate ago | 0

Question

Restricting method access to classes, NOT methods of classes

Hello all, I am trying to understand some method access capabilities, so that methods can only my accessed by objects of a c...

8 Monate ago | 1 answer | 0

Answered

How do I find the index of a datapointon a MATLAB plot?

This is my kludgy workaround: instead of plot(x,y) do plot3(x,y,1:length(x)); view(0,90) NOW use your data...

How do I find the index of a datapointon a MATLAB plot?

This is my kludgy workaround: instead of plot(x,y) do plot3(x,y,1:length(x)); view(0,90) NOW use your data...

8 Monate ago | 0

Question

Debugging: finding all instances of gpuArray in large code base [or finding all instances of other function calls]

Hello all, I am building a code set that I prefer to run on the GPU, but would also like to be capable of executing on a non...

8 Monate ago | 1 answer | 0

Question

Finding files WITHOUT a specfic prefix (or suffix, extension, etc.) using dir

Hello all, I have a question partly inspired by the question <https://www.mathworks.com/matlabcentral/answers/352046-find-file...

9 Monate ago | 1 answer | 0

Question

GPU memory overhead dependent on fft dimension.

Hello all, I have a question regarding memory management during Matlab's gpuArray/fft operation. I have a large NxM matrix [N ...

9 Monate ago | 1 answer | 0

Answered

Index with for loop variable name and definition

If I understand your question, it is parallel to the one <https://www.mathworks.com/matlabcentral/answers/105936-how-to-make-dyn...

Index with for loop variable name and definition

If I understand your question, it is parallel to the one <https://www.mathworks.com/matlabcentral/answers/105936-how-to-make-dyn...

9 Monate ago | 0

| accepted

Answered

How can I circle fit 6 points and find the center?

Least squares fitting: examples in 2D: https://www.mathworks.com/matlabcentral/fileexchange/22643-circle-fit--pratt-method-...

How can I circle fit 6 points and find the center?

Least squares fitting: examples in 2D: https://www.mathworks.com/matlabcentral/fileexchange/22643-circle-fit--pratt-method-...

9 Monate ago | 0

Answered

Save Image Files in a loop

Something _like_ this should work: just iterate over the save-name for the image. for i = 1:I image = doStuff(data); imag...

Save Image Files in a loop

Something _like_ this should work: just iterate over the save-name for the image. for i = 1:I image = doStuff(data); imag...

9 Monate ago | 0

| accepted

Question

Suggestion/question: User-friendly tab auto-completions

Hello, I have a question/suggestion about the tab-to-complete box, and improving its utility. I am submitting this here, as t...

9 Monate ago | 1 answer | 0

Question

Catching Matlab state variables in the try-catch MException.

Hello, I have a question about error handling. I have a code that is scanning through files and doing some operations on them,...

9 Monate ago | 1 answer | 0

Answered

How to make a plot with different colors to represent different data values/thresholds?

You can use a nested _switch-case_ statement. Lets say you have data _x,y,state1,state2_. switch state1 ...

How to make a plot with different colors to represent different data values/thresholds?

You can use a nested _switch-case_ statement. Lets say you have data _x,y,state1,state2_. switch state1 ...

9 Monate ago | 0

Answered

Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return false otherwise.

One idea: dx = diff(x); tf = ~any(dx<=0); Note this will also work on matrices, if you want. E.g. to look at each row x ...

Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return false otherwise.

One idea: dx = diff(x); tf = ~any(dx<=0); Note this will also work on matrices, if you want. E.g. to look at each row x ...

9 Monate ago | 0

Question

Failing to free GPU memory on cleared/replaced/gathered variables: 2017a

Hello all, I am running into an out of memory error on my GPU (8 GB, GTX 1080). I have drilled down to the code segment that k...

9 Monate ago | 1 answer | 0

Question

Advice on when to start writing custom CUDA

Hello all, I currently take advantage of a lot of Matlab's GPU enabled functions (matrix operations, FFTs, etc.) which provide...

9 Monate ago | 1 answer | 0

Question

Maximizing code interpretability while minimizing computational cost.

Hello, I have a question about whether there is a current method to maximize code readability while minimizing computational c...

9 Monate ago | 1 answer | 0

Question

Coding Practice: Naming and best practices for 'overhead' variables

Hello all, I have a couple of questions regarding what I will refer to as 'overhead' variables. Examples of these would be var...

10 Monate ago | 1 answer | 0

Question

Parallel running coroutines in Matlab

Hello, I am wondering if there is any way to get a functional co-routine in Matlab, a function that runs alongside another scrip...

11 Monate ago | 1 answer | 0

Question

Allowing unknown parameters in an inputParser

Hello, I am attempting to figure out a better way of handling parameters and passing them through input parsers. Let us say I ha...

11 Monate ago | 2 answers | 1

Question

Boolean style switch-case statements

Hello, I am trying to determine if there is a means of performing Boolean style logic comparisons using the switch-case mecha...

11 Monate ago | 1 answer | 0

Question

Multi-level structure sorting with empty initial structures

Hello all, I am attempting to look through a directory, and, based on parsing the filenames, split filenames into a number of ...

12 Monate ago | 0 answers | 0

Question

Checking partition format before saving.

Hello, I was wondering if there is a simple way to get the format (NTFS, FAT32, etc.) of a directory. The issue is that I ma...

12 Monate ago | 1 answer | 0