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 ...

5 years 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...

5 years 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...

5 years ago | 0

| accepted

Answered
vector indexing in different dimension
You can use arrayfun function: arrayfun(@(a,b) max(C(a:b)),A,B)

5 years ago | 1

| accepted

Answered
How to divide gray scale image into 8x8 blocks and access each block separately to apply dct2 on the block
file = 'cameraman.tif'; im=imread(file); imshow(im); In order to use blockproc you have to use a function that accpts blockss...

5 years ago | 1

| accepted