Risposto
Can I return the xml string from writestruct?
You can't suppress file output, but you can use readlines and writelines to retrieve the file contents in string form and then m...

2 mesi fa | 0

| accettato

Risposto
Handling outliers in Spray Angle calculations
This is one way you might clean things up: fnames={dir('*.bmp').name}; Bcell=cellfun(@cleanUp,fnames,'uni',0); tiledlayout(...

2 mesi fa | 1

Risposto
Graceful exit from a parfor loop
It sounds like a job for onCleanup.

3 mesi fa | 1

| accettato

Domanda


gpuArray support for Optimization Toolbox solvers
I have wondered for a while why the OptimizationToolbox doesn't currently support gpuArray data types in its solvers (lsqnonlin,...

3 mesi fa | 1 risposta | 2

1

risposta

Risposto
Input image rescaled to 0-1 using im2single for ImageNet models, will that result in wrong outputs?
Yes, probably. For all of these networks, the input layer normalization settings are 'zerocenter', which is not a scale invarian...

3 mesi fa | 0

| accettato

Domanda


Sparse gpuArray indexing limitations
When trying to extract a sub-matrix of a sparse gpuArray, I get, >> S=gpuArray(sprand(100,100,0.1)); >> S(1:5,1:5) Sparse gpu...

3 mesi fa | 2 risposte | 0

2

risposte

Risposto
Pagemldivide returns incorrect results for complex gpuArrays
Looks like a bug to me. I would report it. Test Data Acpu=randn(20,10,2)+1j*randn(20,10,2); Bcpu=randn(20,10,2)+1j*randn(20,1...

3 mesi fa | 0

| accettato

Domanda


Does A(m:n) trigger the explicit creation of an index array (m:n)?
I was under the impression that in an indexing expression A(m:n) when A is a numeric vector, Matlab was smart enough to optimize...

3 mesi fa | 1 risposta | 0

1

risposta

Risposto
No more machine transfers available
If you're a license administrator, you can deactivate one of the installations from the License Center.

3 mesi fa | 0

Domanda


Has save() bug been fixed?
I have a user-defined object that is failing to save in R2024b, >> save testsave mgr Warning: Variable 'mgr' was not saved. Fo...

3 mesi fa | 1 risposta | 0

1

risposta

Risposto
When does distributing data improve computation time over overhead expense?
Are your parallel workers all on a single computer, or are they distributed across a cloud? If all of this is on a single comput...

3 mesi fa | 0

Risposto
How is the spectralConvolution1dLayer forward computation process performed
According to the doc you referenced, the convolution is performed with respect to the time dimension in that case, For time ser...

3 mesi fa | 0

Risposto
How to enable viewing workspace variables when hovering
If you upgrade to R2026a, you can recover the capability of viewing variable content in edit mode (in addition to debug mode). A...

3 mesi fa | 0

| accettato

Risposto
Overwriting table columns with ()-indexing
Apparently, complete replacement of table columns can't be done via direct subsasgn indexing, so here is a function that will do...

3 mesi fa | 0

Risposto
Comma-separated assignment to a table variable
According to Tech support, it is not a bug, just something that wasn't implemented for tables. However, they see it as a legitim...

3 mesi fa | 1

| accettato

Inviato


Custom deep learning layer: function with learnables
A custom deep learning layer, similar to functionLayer() but with learnable parameters.

3 mesi fa | 1 download |

0.0 / 5

Domanda


How does numArgumentsFromSubscript work?
As an exercise, I am trying to overload the subsref method in my user-defined class myclass to support the assignment expression...

3 mesi fa | 1 risposta | 0

1

risposta

Domanda


Comma-separated assignment to a table variable
The code below tests assignment by comma-separated expansion to a cell array in 3 different scenarios. In the specific case when...

3 mesi fa | 2 risposte | 0

2

risposte

Domanda


Make memoized function calls recognize equivalent input sequences (and so avoid redundant cache entries)
In the demo below, we see that the memoized function func() executes twice out of the three times it is called. Ideally, it woul...

3 mesi fa | 1 risposta | 0

1

risposta

Domanda


List all memoized function caches
I know that clearAllMemoizedCaches will clear all memoized function data, but what if I just want to list all existing memoized ...

3 mesi fa | 2 risposte | 0

2

risposte

Domanda


Overwriting table columns with ()-indexing
Suppose I have two tables, T1=array2table(rand(5,3)) T2=array2table(char(randi([65,90],5,3)),Var={'Col1','Col2','Col3'}) ...

4 mesi fa | 3 risposte | 2

3

risposte

Risposto
Please help me to solve two nonlinear algebraic equations
syms L1 L2 eq1 = b5*L1^2 + (b9 + b7)*L1 + ... b6*L2^2 + b10*L2 + b8 == 0; eq2 = b27*L1^4 - b32*L1^3 + b33*L1^2 - b3...

4 mesi fa | 0

Risposto
Innerjoin when a table contains user-defined objects
Attached is a possible workaround. load testdata tableInner(Tleft,Tright)

4 mesi fa | 0

Domanda


Accessing a single GPU from different workers of a parpool thread pool
It used to be conventional wisdom that parfor does not play well together with gpuArray on a single-GPU system because differen...

4 mesi fa | 1 risposta | 0

1

risposta

Domanda


Innerjoin when a table contains user-defined objects
I have two tables that I wish to innerjoin() according to the topThick and botThick columns, which are the same in both tables. ...

4 mesi fa | 2 risposte | 0

2

risposte

Risposto
every restart of Matlab path is lost
If you don't want to make the path permanent (using savepath), you can use a startup script to set the path at the beginning of ...

4 mesi fa | 1

Risposto
Possible to use box or violin plots, with unequal x and y axis spacing?
clear; close all, clc %%Instrument A yA=(1:9)*0.1; xA=randn(2*60, numel(yA))+15; %%Instrument B yB=[0.5,1]; xB=r...

4 mesi fa | 0

Inviato


Customized text modification buttons for the Matlab Editor
A pair of functions enabling simple, programmatic modification of Matlab Editor text. These can be used to make customized butto...

4 mesi fa | 41 download |

0.0 / 5

Risposto
Shortcut for zoom tool in figure
You haven't listed the version of Matlab you are using, but in any recent version you do not need to make a toolbar selection to...

4 mesi fa | 0

Risposto
Transfer shortcuts(favouritecommand) from 2017b to 2022b
Look for the set of .xml files in your prefdir that are NOT highlighted in yellow in the list below. These should be copied ov...

4 mesi fa | 0

Carica altro