Community Profile # Miquel

Last seen: 9 días ago Active since 2017

#### Statistics

• • #### Content Feed

View by

Question

Add structs in a saved array of structures
Hello, I have a function (fun1) which generates several results (r1,r2,r3...). I organise them in a struct. results=struct('re...

más de 2 años ago | 1 answer | 0

### 1

How do I decrease the margins around the subplots in my figure in MATLAB?
You can use the following code: ax = gca; outerpos = ax.OuterPosition; ti = ax.TightInset; left = outerpos(1) + ti(1); b...

más de 2 años ago | 0

Question

Could there arise issues by running the same function in MATLAB pc and online at the same time?
I have a function which I need to run with several distinct and huge variables. Running it in my pc and in Matlab online at the ...

más de 2 años ago | 1 answer | 0

### 1

Question

Function fails when called from another function
The function below fails when I call it from another function. I call it like this: % Stuff before where all the variables are ...

más de 2 años ago | 1 answer | 0

### 1

Question

Concatenate cells leaving columns/rows empty
If I want to concatenate 2 cells I can use []. For example: >> a={'lala'};b={'lolo'};c=[a,b] c = 1×2 cell array ...

más de 2 años ago | 1 answer | 0

### 1

Question

Change specific values in odd/even columns of a matrix
I have a matrix and I would like to make all values which are equal x, equal to y. But I would like to do that only in odd colum...

más de 2 años ago | 2 answers | 0