Domanda

How to fix an error in Parallel Processing?

Dear All, When I tried to use parfor to run my code, I always got the following error message (I defined the variable "red" at ...

oltre 3 anni fa | 0 risposte | 0

Domanda

Problems encountered in Parallel Processing

Dear All, I tried to use parfor to run my code which is given as follows: function [A,B] = temp_test(x) a = [1:2*x]; b = [1:x...

oltre 3 anni fa | 1 risposta | 0

Domanda

Can we calculate the roots of polynomials with matrix coefficients?

Dear All, I have a polynomial which has matrix coefficients. For example, I have the following equation: [1 0;0 1]*[x_1^2; x_2...

oltre 3 anni fa | 1 risposta | 0

Domanda

A Question About the exe file generated by Matlab Compiler

Dear All, If I generate an exe file using Matlab Compiler, can I still use this exe file after Matlab Compiler gets expired? Wh...

oltre 3 anni fa | 1 risposta | 0

Domanda

How to solve a special linear equation Ax=b? A is a row vector.

Dear All, I am trying to solve the following linear equation Ax=b: [a1 a2 ... an][x1 x2 ... xn]' = b. where b is a complex num...

oltre 3 anni fa | 2 risposte | 1

Domanda

How to display a matrix which has elements with big difference in values?

Hi, All, I want to display a matrix A which has elements with big difference in values. For example, A=[1000 0.2;1001 0.5;2120 ...

circa 4 anni fa | 1 risposta | 0

Domanda

The fastest way to check if a sparse matrix is singular or not?

Dear All, For a large sparse matrix A, how can I check in a fastest way if matrix A is singluar or not? The matrix has a dimens...

circa 4 anni fa | 1 risposta | 0

Domanda

How to find the last nonzero entry in all rows of a sparse matrix?

Dear All, I need to find out the last nonzero entry in each row of a sparase matrix A. Say A=[1 3 0 0 0 0;0 4 2 3 0 0;5 0 0 1 4...

circa 4 anni fa | 1 risposta | 0

Domanda

Is there a faster approach than \ operator to calculate the inverse of a lower triangular matrix?

Dear All, I have a big square lower triangular matrix A (6000 x 6000) which is very sprase with a density 0.05%, I am using Inv...

circa 4 anni fa | 0 risposte | 0

Domanda

Efficient Inverse of a updated lower triangular matrix

Dear All, I am looking for the inverse of a updated lower triangular matrix. The original matrix is A which is a lower triangul...

circa 4 anni fa | 0 risposte | 0

Domanda

How to find out the location difference of nonzero entries in two sparse matrices?

Hello, All, I have two sparse matries which have the same size. I know every nonzero entry in A must correspond to a nonzero ...

circa 4 anni fa | 1 risposta | 0

Domanda

How to do a quick division between a column array and a matrix?

Hello, All, I want to divid a column array b (N x 1) by each column in a big sparse matrix A (N x M). My code is as follows: ...

circa 4 anni fa | 1 risposta | 0

Domanda

How to design a professional output format?

Hi, All, I am going to submit a final report of project. I want to design a professional output format. I do not know if anyo...

circa 4 anni fa | 0 risposte | 0

Domanda

How to display the code is running?

Hi, All, I have a code which takes several minutes to finish the execuation. I donot want to display the middle results on th...

circa 4 anni fa | 2 risposte | 0

Domanda

How to obtain the minimum square full rank sub-matrix in a sparse matrix?

Dear All, For a given sparse matrix, I am looking for the minimum square full-rank sub-matrix which is formed by nonzero column...

oltre 4 anni fa | 1 risposta | 1

Domanda

How to quickly combine some lines in a network?

Dear All, For a given network formed by edges and lines, I want to combine some lines in this network to generate a new netwo...

oltre 4 anni fa | 0 risposte | 0

Domanda

Looking for all sub-networks among a network

Dear All, For a given network formed by lines and edges, how can I quickly find out all sub-networks? There is no connection ...

oltre 4 anni fa | 1 risposta | 0

Domanda

How to solve this weird problem in Matlab?

Dear all, I have a linear equation: a*x1-b*x2+x3=1.0. a and b are known parameters: a=b=10E+6. Now we know the solutions of x...

oltre 4 anni fa | 2 risposte | 0

Domanda

Faster approach of LU decomposition for a symmetric sparse matrix than lu in Matlab?

Dear All, I have a symmetric sparse matrix A. I want to obtain its LU decomposition. But I found lu(A) took me about 1 second...

oltre 4 anni fa | 1 risposta | 0

Domanda

Faster inverse of a lower triangular matrix than inv(A)?

Dear All, I have a sparse lower triangular matrix A. I want to obtain the inverse of A. A has a size of 6000 X 6000. I find i...

oltre 4 anni fa | 2 risposte | 0

Domanda

How to assign values to a sparse matrix without iterations?

Hi, All, I want to assign non-zero values to a matrix H. I know the locations of all the non-zeros. For example, I know the n...

oltre 4 anni fa | 2 risposte | 0

Domanda

How to specifically select columns from a matrix?

Dear All, For a given 2 columns matrix A. For example <</matlabcentral/answers/uploaded_files/135120/Screen%20Shot%202018-...

oltre 4 anni fa | 1 risposta | 0

Domanda

Semi-Lower Triangular Matrix

Dear All, I want to convert a general sparse matrix into a semi-lower triangular matrix. For example, a given matrix A: A=...

oltre 4 anni fa | 0 risposte | 1

Domanda

A challenging problem: how to obtain a semi-lower triangular matrix from a general matrix?

Dear All, I want to convert a general sparse matrix into a semi-lower triangular matrix. For example, a given matrix A: A=...

oltre 4 anni fa | 1 risposta | 1

Domanda

Error caused by that small difference between two number is divided by a very small number

We have a situation that the difference between two complex numbers is divided by a very small complex number. For example, the ...

oltre 4 anni fa | 0 risposte | 0

Domanda

Does Orthogonal Matching Pursuit have the problem of divergence?

I am using the Matlab code of OMP to solve a nonlinear problem. But I do not now if OMP has the problem of divergence. As to my ...

oltre 5 anni fa | 0 risposte | 0

Domanda

Can I use L1-Optimization to estimate a linear set of equations?

I have a linear equation Bx=P. Where B is an overdetermined matrix (M x N, M > N), x is a variable column vector, and P is the m...

circa 6 anni fa | 0 risposte | 0