Question

Please, correct the following logical index in vetor.

% Need to write the elements from 1 to ref, and from ref to n. Where n is the vector dimension. X(1:ref && ref:n)

3 years ago | 1 answer | 0

Question

How to concatenate the resulting 2D matrices from a 3D matrix, vertically? Please, I need the solution for a gereric dimension n, i.e., A(:,:,n)

%example for a=1:n for c=1:n H1(c,a,a)=1; H1(c,c,a)=-1; en...

3 years ago | 1 answer | 0

Question

Considering a 3D matrix of generic dimension n. How to delete the first column of the first matrix, the second column of the second matrix, the third column of the third matrix, and so on.

% Considering 3D matrix of dimension n n=3; for a=1:n for b=1:n for c=1:n A(b,c,a)=c; ...

3 years ago | 2 answers | 0

Question

Considering a 3D matrix. How to delete the first column of the first matrix, the second column of the second matrix, the third column of the third matrix and so on.

% Considering 3D matrix of dimension n n=3; for a=1:n for b=1:n for c=1:n A(b,c,a)=c; end end end

3 years ago | 0 answers | 0

Question

Considering a 3D matrix. How to delete the first column of the first matrix, the second column of the second matrix, the third column of the third matrix and so on.

% Considering 3D matrix of dimension n n=3; for a=1:n for b=1:n for c=1:n A(b,c,a)=c; end end end

3 years ago | 1 answer | 0

Question

How to create a 2D diagonal matrix from a 3D matrix with a generic dimension? It could be with a loop structure.

%% 3D matrix k n=3; k=zeros(n) for a=1:n for b=1:n for c=1:n k(b,c,a...

3 years ago | 2 answers | 0

Question

Error in ODE arguments in line 87

Hi everyone! I'm trying to reed a .m funtion (with global variables) with the following script: function [dY]=fun2(t,yfo...

3 years ago | 1 answer | 0

Question

LONG PERIOD TRIANGULAR WAVE INPUT

Hello! Please, How to generate a LONG PERIOD TRIANGULAR WAVE INPUT? using Simulink? Thanks

8 years ago | 1 answer | 0

Question

How to simule Lorenz equation with Simulink

Hi, If anybody can give me some idea i really thanks.. Mariana

8 years ago | 0 answers | 0

Question

PLOT TWO FUNCTION IN THE SAME GRAPHIC

Hi everybody, Another way to view two functions in the same graphic without using the command 'plot'? Thanks a lot, Mar...

8 years ago | 1 answer | 0

Question

MATRIX COFACTOR

I need to know a function to calculate the cofactor of a matrix, thank a lot!

9 years ago | 3 answers | 0