Community Profile

photo

Benjamin D'Anjou


Last seen: 2 months ago Active since 2019

Statistics

  • Thankful Level 2

View badges

Content Feed

View by

Question


Matlab parfor uses fewer cores than the allocated number of cores
I'm running a parallel Matlab (R2020a) job on a single node of a remote cluster. Each node of the cluster has 2 processors with ...

3 months ago | 1 answer | 0

1

answer

Question


Comparing the performance of colon, loop, and cell indexing
I will first state the problem and then ask my question. PROBLEM I have this code where repeatedly multiply a vector by a squa...

1 year ago | 2 answers | 1

2

answers

Question


Why is calling a superclass constructor after a use of the object not allowed?
I have a subclass "subclass" of two classes "classA" and "classB", which are in turn subclasses of "superclass". Here is the cla...

2 years ago | 3 answers | 1

3

answers

Answered
Storing functions in classdef files
In the end I decided to store both myFunction.m and the @-folder in another path folder that has the same name as the class: pa...

2 years ago | 0

Question


Storing functions in classdef files
I have an object-oriented Matlab project with several classes. I store each class definition in a @-folder within a folder pathF...

2 years ago | 3 answers | 0

3

answers

Question


Why does linspace create row instead of column?
In Matlab, array indexing is column based. For instance A = [1,2;3,4]; % My matrix A b = A(:); % This is a column vector b = [...

2 years ago | 1 answer | 0

1

answer