Domanda

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...

oltre 4 anni fa | 1 risposta | 0

Domanda

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,...

oltre 4 anni fa | 1 risposta | 0

Risposto

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 ...

oltre 4 anni fa | 0

Risposto

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 ...

oltre 4 anni fa | 0

Domanda

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...

oltre 4 anni fa | 1 risposta | 0

Domanda

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...

oltre 4 anni fa | 1 risposta | 0

Domanda

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...

oltre 4 anni fa | 1 risposta | 0

Domanda

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...

oltre 4 anni fa | 1 risposta | 0

Domanda

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...

circa 5 anni fa | 1 risposta | 0

Domanda

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...

circa 5 anni fa | 2 risposte | 1

Domanda

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...

circa 5 anni fa | 1 risposta | 0

Domanda

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 ...

circa 5 anni fa | 0 risposte | 0

Domanda

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...

circa 5 anni fa | 1 risposta | 0

Domanda

Speed of Looped GPU operations with varying input sizes

Hello all, This is a reformulated post related to <https://www.mathworks.com/matlabcentral/answers/361608-speed-of-looped-oper...

oltre 5 anni fa | 0 risposte | 0

Domanda

Speed of looped operation on a GPU depending on number of iterations in loop?

This is a question that I think will get a bit into the weeds of MATLAB's JIT and GPU toolbox. I will be including a MWE sampl...

oltre 5 anni fa | 1 risposta | 0

Domanda

Replacing numerics in text using regular expressions.

Hello, I am trying to figure out whether it is possible to dynamically replace numeric values in a long text block using regul...

oltre 5 anni fa | 2 risposte | 0

Domanda

Cubic interp1 on a GPU array: bug?

This may be better to put into bug reporting, but has anyone else received the message: gpuArray does not support the cubic...

oltre 5 anni fa | 1 risposta | 0

Domanda

How to implement function hints in your code

I have seen that this has been asked previously, but never answered, and I want to know if this should go in as a feature reques...

circa 6 anni fa | 1 risposta | 14

Domanda

Valley/Ridge tracing in N-D data

This is both a question about whether an appropriate Matlab method/toolbox exist, or if the mathematically inclined folks on her...

circa 6 anni fa | 2 risposte | 0

Domanda

Fast access/concatenation of large array structure

I have a large structure array (500K+ items), and I wish to access certain fields of the that array and concatenate the results....

circa 6 anni fa | 1 risposta | 0

Domanda

How to recast a superclass object into a subclass based on internal information?

I recently put up <https://www.mathworks.com/matlabcentral/answers/335298-can-i-use-subclass-folder-inside-superclass-folders-t...

circa 6 anni fa | 1 risposta | 1

Domanda

Can I use @subClass folder inside @superClass folders to create a class hierarchy?

I am working on creating a large set of classes in matlab, and the super-class/sub-class setup looks like it will be best. I als...

circa 6 anni fa | 5 risposte | 0

Domanda

memmapfile and importing big-endian data

I need to import a large mixed-format binary file. This is best done using memmapfile. However, the data has also been written i...

circa 6 anni fa | 1 risposta | 2

Domanda

memmapfile and alternative data formats (char, complex, etc.)

This is both a request for expanded Matlab capabilities in future versions, and a question as to whether better methods than use...

circa 6 anni fa | 1 risposta | 0

Domanda

Controlling current axes within programmatic UI (GUI layout toolbox)

I am currently building a programmatic UI using the GUI layout toolbox (GLT), and I am having difficulty convincing Matlab to us...

circa 6 anni fa | 1 risposta | 0

Risposto

For Loop With Non-Intergers and Looping Over Multiple Values in One Step

IF I understand your question (try providing a minimal working example next time of what you want to do, below is a sample MWE),...

For Loop With Non-Intergers and Looping Over Multiple Values in One Step

IF I understand your question (try providing a minimal working example next time of what you want to do, below is a sample MWE),...

circa 6 anni fa | 0

Risposto

Filling in Matrix (Interpolation

You can either break up the columns, or do it in one go. Example below. In future, please include how you ran interp1 or any...

Filling in Matrix (Interpolation

You can either break up the columns, or do it in one go. Example below. In future, please include how you ran interp1 or any...

circa 6 anni fa | 2

Risposto

How to make functions run in parts of for loop

I don't know if there is a way to avoid having a bunch of _if_, _elseif_, _else_ statements, although the idea of logical indexi...

How to make functions run in parts of for loop

I don't know if there is a way to avoid having a bunch of _if_, _elseif_, _else_ statements, although the idea of logical indexi...

circa 6 anni fa | 0

Domanda

Rotation, time-span, and transparency for geotiffs and geotiffwrite

Hello, So, I am playing around with exporting geotiff files to Google Earth (GE), and there are three capabilities I would l...

circa 6 anni fa | 0 risposte | 0

Domanda

Dynamic variable names for full workspace operations

To start with, I understand dynamic variable names are bad. I am not _really_ trying to use them. What I really want to do is ap...

circa 6 anni fa | 3 risposte | 2