Question

Reduce computational time for ODE solver

Hi all i have this code for iDom_hot = 1:numel(Dall_hot) xRange_hot = Dall_hot{iDom_hot}; for iInitial_hot = 1:numel(Y0_...

1 day ago | 1 answer | 0

Question

Solve ODE for variable domain

Hi all is it possible to solve the same ODE system for 3 adiacent different domain? Do i need something like that? if x>x1&&x<...

17 days ago | 1 answer | 0

Question

neat stacking of array and cell array

Hi all i have this 3x2 cell array: 6x1 cell 1x1 cell %a 1x1 cell 1x1 cell %b [] 1x1 cell %c i want to stack up the ...

18 days ago | 2 answers | 0

Question

Copy cells a variable number of times

Hi all i have this code for i=1:length(a) C(i)=repmat(b(i),1,a(i)) end where b is a cell array 16x5 double 16x5 double ...

18 days ago | 2 answers | 0

Question

Submatrixes with different rows

Hi all i have a certain matrix 45x5, i want to neatly cut this matrix in submatrixes (or maybe group into cells) with differe...

19 days ago | 0 answers | 0

Question

construct a vector formed by arrays of different lengths

Hi all i want to built a vector using multiple arrays with different length. First of all with thi code a=zeros(100000,sum(c)...

19 days ago | 1 answer | 0

Question

Mean value of a subarray

Hi all i have an array V=1x115 i want to create another array which contains the mean value neatly of the first 8 V values than...

29 days ago | 1 answer | 0

Question

Save the first non-zero value in each column

Hi all i have a matrix like that 1 0 1 0 1 0 0 0 0 1 0 1 i want to save only the first non zero values in each column an...

1 month ago | 1 answer | 0

Question

Find different arrays in a matrix

Hi all i have a matrix like that A=[1 2 3; 4 5 6; 7 8 9] i want the index of the rows that contain B=[1 3;4 5;7 9;4 6;2 3] so ...

1 month ago | 1 answer | 0

Question

Cell2Mat for cells with different dimensions

Hi all i have a cell array like this: C={(21 24 47 89 57)' , ( 24 21)' , (16 87 47 89 90 99 182)'} i want to obtain...

1 month ago | 1 answer | 0

Question

Minimum value ineach column

Hi all i want to extract the minimum positive value in each column, i have used this code for j=1:length(columnA) a(j)=min(A...

1 month ago | 1 answer | 0

Question

Cell arrays difference operation

Hi all i have a 2 cell arrays, Twcell_hot and tempTOT_hot;Twcell_hot is a 1x285 array where in each cell there is a single num...

1 month ago | 1 answer | 0

Question

Export data from cell matrix to excel

Hi i wanto to export all the cell and their relative values contained in Ysol (it contains numerous cells) to an excel file, ho...

3 months ago | 1 answer | 0

Question

Cutting for loop connected with cell matrix

Hi all i have a for loop capable to solve multiple times an ODE system. It gives me, as solution for the system, a cell matrix ...

3 months ago | 0 answers | 0

Question

Reduce computing time ode system

Hi all i would like to reduce the computing time of my code in such a way as to increase the dimensions of integration domain (...

3 months ago | 2 answers | 0

Question

Find indices for the minimum positive values in a cell

Hi all i am not able to find the indices for the minimum positive values inside a 2x7 cell. I would find the cell number (conta...

3 months ago | 2 answers | 0

Question

ODE system with variable parameter, Boundary conditions and domain

Hi all is it possible to solve an ODE system with these characteristics? The problem can be summerized in this way, calling: D...

3 months ago | 1 answer | 0

Question

Solving system of equations

Hi all i have a question about solving this system of equations. Tt, Pt and M are related to space and time due to i and j; i...

4 months ago | 1 answer | 0

Question

Solve first order PDEs system

Hi all i have some troubles in solving this PDE system, i don't know which is the most effective method. I have searched a lot...

4 months ago | 0 answers | 0

Question

How to solve a system of equations when multiple parameters changes

Hi all my question regards solving system when multiple terms vary within a certain range, for example: w_1=[1,2]; w_2=[2,3];...

4 months ago | 1 answer | 0

Question

partial derivatives system of differential equations in multiple unknowns

Hi all i have some problem with pdepe : "Unable to perform assignment because the size of the left side is 4-by-1 and the size ...

6 months ago | 0 answers | 0