Community Profile

# Chang seok Ma

Last seen: circa un mese ago Active since 2016

#### Content Feed

View by

Question

how to change the order of plots?
Hello, I have a following code figure(3) colororder({'b','r'}) yyaxis left bar(horizon2,data2(:,2),1,'FaceColor',[1 1 1...

circa un mese ago | 1 answer | 0

### 1

Question

Can I replace the row of the matrix when its value is equal to the previous row?
Hello, I have a following matrix as a sample/ A = [1 2 3; 4 5 6; 1 2 3; 1 2 3]; And I would like to replace the value...

circa 2 mesi ago | 1 answer | 0

### 1

Question

xlim is not working
Hello, I am trying to use xlim to limit my x-axis h_to_plot = linspace(1,20,20); horizon = 1:1:20; quant = 1.64; mat ...

circa 2 mesi ago | 1 answer | 0

### 1

Question

how many workers can I use in parallelization?
Hello, I am trying to use parallelization and I have one quick question. I saw another post saying that 'I saw from another...

circa 2 mesi ago | 1 answer | 0

### 1

Question

how to find value in the matrix using index?
Hello, I am wondering if I can find value using index. For example, given matrix A, I would like to get third value of the f...

2 mesi ago | 2 answers | 0

### 2

Question

Is there anyway I can use arrayfun and GlobalSearch at the same time?
Hello, I am trying to use GlobalSearch but not sure how to implement it. Sol = arrayfun( @(v,w,x) fminsearch...

2 mesi ago | 0 answers | 0

### 0

Question

How can I get multiple values from arrayfun?
I have the following sample code. clear clc a = 1:1000; b = linspace(100,200,1000); x1 = arrayfun( @(v,w) fminsearch...

2 mesi ago | 3 answers | 0

### 3

Question

Question about vectorized fminsearch using flipud
Hello, I am trying to understand how the following code optimize the objective function. I thought if I use vector as an...

2 mesi ago | 3 answers | 0

### 3

Question

Question about fminsearch with vector input and output
Hello, I am struggling with fminsearch these days. I found that fminsearch can be used with vector input but I was also told...

3 mesi ago | 2 answers | 1

### 2

Question

Struggling with fminsearch with vector inputs
Hello, I am trying to use vector as an input for fminsearch. clear clc R = 1.0080; sig = 0.75; tem...

3 mesi ago | 2 answers | 0

### 2

Question

how to adjust bar width (absolute value)?
Hello, I am trying to plot using two different bar graphs in Matlab figure(1) bar(horizon1,data_2001(1:4,2),1,'b','FaceAl...

4 mesi ago | 1 answer | 0

### 1

Question

How can I save the figures in the subfolder of current directory path?
Hello, I want to save the figures in the subfolder of current directory. The thing is that I am running my code in two diffe...

4 mesi ago | 1 answer | 0

### 1

Question

How to change the order of graphs using errorbar
Hello, I am trying to plot some graphs using errorbar. Here is the part of the code and the result quant = 1.68; linewidth...

5 mesi ago | 1 answer | 0

### 1

Question

How to plot graphs with looping through string variables?
Hello, I have one question about plotting graphs. I want to use loop with string variables as below. Basically, I want to r...

5 mesi ago | 1 answer | 0

### 1

Question

How can I use GlobalSearch with Parallelization?
Hello, I am trying the code below which uses 'parfor' and 'globalsearch' at the same time. But I got an warning message say...

8 mesi ago | 0 answers | 0

### 0

Question

How to use fmincon with vectors? (error message: not enough input arguments)
Hello, I am trying to use fmincon to find values that maximizes the function. (2 variables) The document on the website ...

10 mesi ago | 1 answer | 0

### 1

Question

Matlab only uses half of the number of logical cores. How can I use all of them?
Hello, I am trying to use parallelization in Matlab. feature('numCores') it gives me MATLAB detected: 6 physical cor...

10 mesi ago | 1 answer | 0

### 1

Question

Parallelization is not working in Matlab
Hello, I am trying to paralleliza my code in Matlab. Below is a part of my code. Basically, I am finding the minimum pos...

10 mesi ago | 0 answers | 0

### 0

Question

How can I convert 1d vector into 4d matrix?
Hello, I have a vector called VV which is 1d vector (38766 * 1) And I want to convert this vector into the matrix V. I wa...

10 mesi ago | 1 answer | 0

### 1

Question

cstdlib: No such file or directory
Hello, I am trying to compile mex function clear clc mex vfi_mex.c -I"../CRoutines" But then I got an error message as b...

11 mesi ago | 0 answers | 0

### 0

Question

Can I call mex function in other mex functions
Hello, I am trying to call mex function in other mex functions as below. I need matrix multiplication but I realized I have ...

11 mesi ago | 1 answer | 0

### 1

Question

Basic question about pointer in mex function
Hello, I am getting confused with the basic concept of pointer in mex function. So I have couple of questions... Below is a...

11 mesi ago | 1 answer | 0

### 1

Question

How to Loop in mexfunction?
Hello, I am working on 2d array in mexfunction. And I have a couple of questions about it. This is the example that I modif...

11 mesi ago | 1 answer | 0

### 1

Question

Mexfunction: Undefined function or variable
Hello, I am trying to use Mexfunction in the matlab but I got a problem. #include "mex.h" #include "blas.h" #include <st...

11 mesi ago | 1 answer | 0