Answered

split legend columns using Matlab 2017a

Legend columns has been introduced in 2018a.

split legend columns using Matlab 2017a

Legend columns has been introduced in 2018a.

2 mois ago | 0

Answered

It seems that patternsearch does not use my initial guess.

Hi, After checking your code I've seen your write to time lb(222) and the second time you specify lb(222)=0 BUT your initial ...

It seems that patternsearch does not use my initial guess.

Hi, After checking your code I've seen your write to time lb(222) and the second time you specify lb(222)=0 BUT your initial ...

2 mois ago | 0

| accepted

Answered

Batch processing a function

With the batch function, your script will be executed on your PC as it is. The onlyu difference is your current MATLAB session w...

Batch processing a function

With the batch function, your script will be executed on your PC as it is. The onlyu difference is your current MATLAB session w...

2 mois ago | 0

Answered

It seems that patternsearch does not use my initial guess.

Can you provided your coe ? Is there any constaints for your oproblem and the initakl guess doesn't fit the constraint ?

It seems that patternsearch does not use my initial guess.

Can you provided your coe ? Is there any constaints for your oproblem and the initakl guess doesn't fit the constraint ?

2 mois ago | 0

Answered

Batch processing a function

You need to use the batch function: j = batch('yourScriptName','Pool',4); And replace the for loop by a parfor loop. Be ...

Batch processing a function

You need to use the batch function: j = batch('yourScriptName','Pool',4); And replace the for loop by a parfor loop. Be ...

2 mois ago | 0

Answered

How to fix "Index exceeds the number of array elements (1)"?

Hi, In you code, first you define L as followed: L=[2*a 2*a a]; Then, you redifine it to: L = L(i); % where i is 1 After ...

How to fix "Index exceeds the number of array elements (1)"?

Hi, In you code, first you define L as followed: L=[2*a 2*a a]; Then, you redifine it to: L = L(i); % where i is 1 After ...

2 mois ago | 0

| accepted

Answered

How to extract only numerical values from cell into new column array?

Try this: in=["chb12_06.edf" "1665 seconds" "1726 seconds" "3415 seconds" "3447 seconds" "chb12_08.edf" "1426 seconds" "...

How to extract only numerical values from cell into new column array?

Try this: in=["chb12_06.edf" "1665 seconds" "1726 seconds" "3415 seconds" "3447 seconds" "chb12_08.edf" "1426 seconds" "...

2 mois ago | 1

Answered

Why is the gpuArray version of my code slower?

OK, Basically if your program takes less than a second on your CPU it's not a surprise it will be slower in a GPU or even in a ...

Why is the gpuArray version of my code slower?

OK, Basically if your program takes less than a second on your CPU it's not a surprise it will be slower in a GPU or even in a ...

2 mois ago | 1

Answered

Best way to read in massive amount of data from csv files?

Hi, If you have huge data file(s), you may want to look at datastore. First datastore can apply on fileS, folder. Then if ...

Best way to read in massive amount of data from csv files?

Hi, If you have huge data file(s), you may want to look at datastore. First datastore can apply on fileS, folder. Then if ...

3 mois ago | 0

Answered

Converting cell array from excel to numbers

OK, Well dealing with table, each variables (columns) of the table will have ONE datatype. So that means you have something in...

Converting cell array from excel to numbers

OK, Well dealing with table, each variables (columns) of the table will have ONE datatype. So that means you have something in...

4 mois ago | 0

Answered

Converting cell array from excel to numbers

OK, so if your names are not unique: data=readtable(FileName,'ReadVariableNames',false,'TreatAsEmpty' ,'-'); iHeight=strcmp(ra...

Converting cell array from excel to numbers

OK, so if your names are not unique: data=readtable(FileName,'ReadVariableNames',false,'TreatAsEmpty' ,'-'); iHeight=strcmp(ra...

4 mois ago | 0

Answered

Converting cell array from excel to numbers

Hi, Before answering your question, know that most of the time the call of function find is useless. In your case you can do ...

Converting cell array from excel to numbers

Hi, Before answering your question, know that most of the time the call of function find is useless. In your case you can do ...

4 mois ago | 0

| accepted

Submitted

Random point inside a polygone

Create random point inside a polygone

4 mois ago | 0 downloads |

Answered

Why i getting complex double in fitting ode with experimental data

Have follow the hyperlink: Knowing that, can you set boundaries or do you need to specify constraint (see the docuement page he...

Why i getting complex double in fitting ode with experimental data

Have follow the hyperlink: Knowing that, can you set boundaries or do you need to specify constraint (see the docuement page he...

4 mois ago | 0

Answered

Why i getting complex double in fitting ode with experimental data

Sorry, I may have been confusing. The LB and UB will be the lower and upper bound of your parameter. Youtr parameter is a 10 ele...

Why i getting complex double in fitting ode with experimental data

Sorry, I may have been confusing. The LB and UB will be the lower and upper bound of your parameter. Youtr parameter is a 10 ele...

4 mois ago | 0

| accepted

Answered

Retrieve an attribute from matlab to app designer

There is several ways to do what you want to do. It will depend on your MATLAB knwoledge. To answer you first question. You c...

Retrieve an attribute from matlab to app designer

There is several ways to do what you want to do. It will depend on your MATLAB knwoledge. To answer you first question. You c...

4 mois ago | 0

Answered

Why i getting complex double in fitting ode with experimental data

Yes, except you have to modify LB and UB to specify these boundaries. These should be vectors (for instance LB(1) and UB(1) wil...

Why i getting complex double in fitting ode with experimental data

Yes, except you have to modify LB and UB to specify these boundaries. These should be vectors (for instance LB(1) and UB(1) wil...

4 mois ago | 0

Answered

How to use different path in different folder

Ok there is several possibility. Option1a: You want your function foo to be used ONLY by the functions of your project1, then y...

How to use different path in different folder

Ok there is several possibility. Option1a: You want your function foo to be used ONLY by the functions of your project1, then y...

4 mois ago | 1

| accepted

Answered

Why i getting complex double in fitting ode with experimental data

Hi, You can specify lower and upper bounds for your var. By the way is it normal that your function DifEq compute the following...

Why i getting complex double in fitting ode with experimental data

Hi, You can specify lower and upper bounds for your var. By the way is it normal that your function DifEq compute the following...

4 mois ago | 0

Answered

Surf not plotting in App Designer

On the first versions of appdesigner, 3D graph wasn't supported. But it is now. Try to avoir this kind of call with any UI: vi...

Surf not plotting in App Designer

On the first versions of appdesigner, 3D graph wasn't supported. But it is now. Try to avoir this kind of call with any UI: vi...

4 mois ago | 0

| accepted

Answered

How to solve the error: 'Undefined function or variable 'aviread''

Which version have you ? aviread have been deprecated bfor releases before being removed completelly in the R2014b release. You...

How to solve the error: 'Undefined function or variable 'aviread''

Which version have you ? aviread have been deprecated bfor releases before being removed completelly in the R2014b release. You...

4 mois ago | 0

Answered

Resize subplot to whole figure window

Try this one subplot(1,1,1,gca) It will transform the gca axe into a subplot(1,1,1) axes

Resize subplot to whole figure window

Try this one subplot(1,1,1,gca) It will transform the gca axe into a subplot(1,1,1) axes

4 mois ago | 0

| accepted

Answered

Why i getting complex double in fitting ode with experimental data

Hi it's seems that the variable U is the first to become complex (just put a breakpoint on the following line): U=1.22*((var(8)...

Why i getting complex double in fitting ode with experimental data

Hi it's seems that the variable U is the first to become complex (just put a breakpoint on the following line): U=1.22*((var(8)...

4 mois ago | 0

Answered

Error using matlab.graphics.axis.Axes/set Value

Hi, please provide the line and the error message, it's really hard otherwise to provide a suitable answer. On the following li...

Error using matlab.graphics.axis.Axes/set Value

Hi, please provide the line and the error message, it's really hard otherwise to provide a suitable answer. On the following li...

4 mois ago | 0

Answered

Draw a graphic window vertically in two parts and draw a graphic in the left part functions f1 (x) with dashed line of black color, and in the right function f2 (x) by crosses green color. Observe the variable x in the interval [-pi/4, pi/4] f1(x)=

I assue you don't know the difference between array operator such as .* ./ .^ and matrix operator * / ^ If you have 2 vectors (...

Draw a graphic window vertically in two parts and draw a graphic in the left part functions f1 (x) with dashed line of black color, and in the right function f2 (x) by crosses green color. Observe the variable x in the interval [-pi/4, pi/4] f1(x)=

I assue you don't know the difference between array operator such as .* ./ .^ and matrix operator * / ^ If you have 2 vectors (...

5 mois ago | 0

| accepted

Answered

Draw a graphic window vertically in two parts and draw a graphic in the left part functions f1 (x) with dashed line of black color, and in the right function f2 (x) by crosses green color. Observe the variable x in the interval [-pi/4, pi/4] f1(x)=

plot(x,y2,'xg') % one and not 2 x, in the other plot the 2 - mean dashed line one - mean solid line

Draw a graphic window vertically in two parts and draw a graphic in the left part functions f1 (x) with dashed line of black color, and in the right function f2 (x) by crosses green color. Observe the variable x in the interval [-pi/4, pi/4] f1(x)=

plot(x,y2,'xg') % one and not 2 x, in the other plot the 2 - mean dashed line one - mean solid line

5 mois ago | 0

Answered

how close external window in app designer?

close instruction will only close figure If you have created your windows1 (I suppose it's an app) like this hWin1 = windows1 ...

how close external window in app designer?

close instruction will only close figure If you have created your windows1 (I suppose it's an app) like this hWin1 = windows1 ...

5 mois ago | 0

| accepted

Answered

Simulating ODEs with array inputs

Hi, I'm not sure you use ode45 correctly. In your function dydt = first_order(t, y, P, T_o) t is the current time and y the ...

Simulating ODEs with array inputs

Hi, I'm not sure you use ode45 correctly. In your function dydt = first_order(t, y, P, T_o) t is the current time and y the ...

5 mois ago | 1

| accepted

Answered

Computing time for .^(1/2) or .^(1/p)

Explanation in french here In order to compute the square root of any number you only need to be able to compute the square roo...

Computing time for .^(1/2) or .^(1/p)

Explanation in french here In order to compute the square root of any number you only need to be able to compute the square roo...

5 mois ago | 1

| accepted

Answered

Sum the daily data based on month and year

Lets assume your 3D variable is called data Frist get the group id : which width of data correspond to the same month of the sa...

Sum the daily data based on month and year

Lets assume your 3D variable is called data Frist get the group id : which width of data correspond to the same month of the sa...

5 mois ago | 0

| accepted