Question

Can any body solve this error? Subscript indices must either be real positive integers or logicals. Error in mynumericlalinverselaplace (line 17) u(i)=2/t*real(k1*F1(y(i),a1/t))+2/t*real(k2*F1(y(i),a2/t))...

clear all; close all; clc; syms q; a1=12.83767675+1i*1.666063445; k1=-36902.08210+1i*196990.4257; a2=12.22613209+1i*5...

1 year ago | 1 answer | 0

Question

See the figure.

As from figure we can see that the gragh are in down direction. Now my question is that there any way that we can fix our Y-axis...

2 years ago | 1 answer | 0

Question

How to find the minimum of the given function?

, , and , The squareroot is on the denominator terms only.

2 years ago | 1 answer | 0

Question

I want to generate 2000 matrices for statistical analysis, when I put m=2 my code works but for greater then m it gives error like that "Error using ' Transpose on ND array is not defined. Use PERMUTE instead." see my code

clc tic m=3; A = randn(3,3, m); J=blkdiag(eye(3),-eye(2)); B=rand(2,3); C=hilb(2); for j=1:m A(:,:...

2 years ago | 1 answer | 0

Question

How to get three sub matrices from a matrix of any order? How we will do for general matrix? I have given an example of order 5.

For example: A= [1 4 5 7 8; 4 2 6 9 10; 5 6 3 1 1; 7 9 1...

2 years ago | 1 answer | 0

Question

Suppose we have 2000 matrices and for each matrix we have a real value between [-3,3]. I want a plot the matrices along horizontal x-axis and their corresponding value on y-axis as shown in figure.

<</matlabcentral/answers/uploaded_files/136170/Untitled.png>>

2 years ago | 1 answer | 0

Question

How to generate 500 random matrices by loop ?

I want to generate 500 random matrices for a numerical test by loop? Can anyone help me?

3 years ago | 1 answer | 0

Answered

How to write these expression, where r_ij are the elements of any arbitrary matrix of even order?

I have written above inequalities, is there any shorter to write these? R=[1, 2, 3, 5;4, 8, 9, 6 ; 5, 6, 7,8;1,1,1,1]; n=l...

How to write these expression, where r_ij are the elements of any arbitrary matrix of even order?

I have written above inequalities, is there any shorter to write these? R=[1, 2, 3, 5;4, 8, 9, 6 ; 5, 6, 7,8;1,1,1,1]; n=l...

3 years ago | 0

Question

How to write these expression, where r_ij are the elements of any arbitrary matrix of even order?

<</matlabcentral/answers/uploaded_files/114430/Untitled.png>>

3 years ago | 1 answer | 0

Answered

Matlab code for this type of factorization.A has a SR decomposition A = SR , where S ∈ R^ 2n ×2n is a symplectic matrix, i.e. S ^TJS = J

if true % code end function [c, v] = optsymhouse1(a) twon = length(a); n = twon/2; J = [zeros(n), eye(n); -eye(n), ...

Matlab code for this type of factorization.A has a SR decomposition A = SR , where S ∈ R^ 2n ×2n is a symplectic matrix, i.e. S ^TJS = J

if true % code end function [c, v] = optsymhouse1(a) twon = length(a); n = twon/2; J = [zeros(n), eye(n); -eye(n), ...

3 years ago | 0

Question

Matlab code for this type of factorization.A has a SR decomposition A = SR , where S ∈ R^ 2n ×2n is a symplectic matrix, i.e. S ^TJS = J

J=[0 -I;I 0] where I∈R^ n ×n means identity matrix. R=[R11 R12;R21 R22]∈ R^ 2n ×2n , is constituted by upper triangular matrice...

3 years ago | 2 answers | 0

Question

I have make a code for block Kronecker product when both A and B have even dimension now myquestion (I want to make a code when A and B have are not even and also A is square and B is rectangular and vice versa)

function y=Kronb4(A,B) %n is the order of the matrix R y=[kron(A,B(1:2,1:2)) kron(A,B(1:2,3:4)) ; kron(A,B(3:4,1:2)) kron...

3 years ago | 1 answer | 0

Question

How to create a matrix B=[bij]=[max(i,j)] belongs to class of rectangular matrices

Please answer me

3 years ago | 2 answers | 0

Question

how to create this matrix [1 2 3 4 5;2 2 3 4 5;3 3 3 4 5;4 4 4 4 5;5 5 5 5 5]

Waiting for your response

3 years ago | 4 answers | 0