Science topic

Matrix Analysis - Science topic

Explore the latest questions and answers in Matrix Analysis, and find Matrix Analysis experts.
Questions related to Matrix Analysis
  • asked a question related to Matrix Analysis
Question
3 answers
According to my information, the lumped mass is a diagonal mass that has six elements (u1, u2, u3, r1, r2, r3). u1, u2, and u3 have a value equal to (ml/2) while r1, r2, and r3 have a value equal to zero. In Figure (1-a), the matrix is arranged and constructed correctly, while in Figure (2-b), the matrix is unarranged and constructed differently why?
Relevant answer
Answer
Hossein Safar Yousefifard, your answer is interesting. I have the same issue with the extracted matrix. My primary concern is to find the center of rigidity since SAP2000 doesn't have this option. Is there any workaround you suggest?
Thanks in advance.
  • asked a question related to Matrix Analysis
Question
6 answers
For any real symmetric matrix X and Q with the appropriate dimension, does the following inequality relation holds?
λmin(Q) ‖X‖2 ≤ X^TQX ≤ λmax(Q) ‖X‖2
where λmin(Q) and λmax(Q) represent the minimum and maximum of matrix Q eigenvalues, respectively, and ‖X‖2 represents the 2-norm of the matrix X.
Relevant answer
Answer
I assume by writing A ≥ (scalar) you mean that the matrix A-(scalar)*(Identity) is positive semi-definite. I also assume the ||X||_2 should be squared on both sides for the inequality to make sense. The upper bound is true because it follows trivially from the operator norm inequality ||AB|| ≤ ||A|| ||B|| and we also have ||A|| ≤ ||A||_2. However the lower bound is false because one could take X = diag(0,1) and Q = diag(1,1) = Identity.
  • asked a question related to Matrix Analysis
Question
3 answers
Hello, I'm about to join a team working on auditory speech perception using iEEG. It is planned that I will use Temporal Response Function (TRF) to determine correlations between stimulus characteristics (variations in the acoustic signal envelope, for example) and characteristics of recorded neuronal activity.
I would therefore like to fully understand the different stages of data processing carried out, as well as the reasoning and hypotheses behind them.
I took a look at the article presenting the method
and I studied the matrix calculations
But several questions remain.
In particular, regarding this formula:
w = (ST S)-1 ST r
where S is a matrix of dimension (T*tau) presenting the characteristics of the stimulus over time (T) as a function of different temporal windows/shifts (tau) as :
S =
[ s(tmin-taumin) ... s(t) ... s(tmin-taumax) ]
[ ... ... ]
[ ... ... ]
[ s(tmax-taumin) ... s(t) ... s(tmax-taumax) ]
and where r is a matrix of dimension (T*N) presenting the recorded activity of each channel in time.
  1. Why do STS? What does the product of this operation represent?
  2. Why do (STS)-1? What does this operation bring?
  3. Why do (STS)-1ST? What is represented in this product?
  4. And finally w = (STS)-1STr. What does w of dimension tau * N really represent?
Hypothesis: STS represents the "covariance" of each time window with the others (high covariance in the diagonal (because product of equal columns), high covariance for adjacent columns (because product of close time windows) and low covariance for distant columns whose time windows are very far apart (and therefore presenting little mutual information)). Maybe that (STS)-1ST (of dimension T*tau) makes it possible to obtain a representation of the stimulus according to time windows and time, but with the abrogation of any correlations that may exist between windows? However, the representation of the stimulus in this product remains very unclear to me... And finally, w may represents the weights (or correlations) of each N channel for the different time windows of the signal. My incomprehension mainly concerns the representation of the stimulus by (STS)-1ST and I would like to better understand the reasoning behind these operations and the benefits they bring to the decoding of neural activity. I'd like to thank anyone familiar with TRFs for any help he/she can give me. My reasoning may be wrong or incomplete, any contribution would be appreciated.
Relevant answer
Answer
Here's a follow up Camille,
Weight Matrix w in TRF Analysis:
The weight matrix w is a fundamental output of Temporal Response Function (TRF) analysis, providing insights into how different aspects of the stimulus relate to neural activity.
Mathematical Representation:
- Each row of w corresponds to a specific time window in the stimulus, denoted as t=1, t=2, t=3, and so on.
- Each column of w corresponds to a neural activity channel, represented as Channel 1, Channel 2, and so forth.
- The values in the weight matrix w are calculated using the formula:
w = (STS)^-1STr
Example:
Suppose we have a simplified weight matrix w, where rows represent different time windows and columns represent neural channels:
| w1, Channel 1 w1, Channel 2 ... w1, Channel N |
| w2, Channel 1 w2, Channel 2 ... w2, Channel N |
| w3, Channel 1 w3, Channel 2 ... w3, Channel N |
In this matrix:
- w1, Channel 1 represents the weight or correlation between the first time window (t=1) of the stimulus and neural Channel 1.
- w2, Channel 2 represents the weight or correlation between the second time window (t=2) of the stimulus and neural Channel 2.
- Each value w captures how strongly a specific time window influences the activity in a particular neural channel.
Interpretation:
- Larger positive values of w indicate that a particular time window has a strong positive influence on the neural activity in a given channel.
- Smaller positive values indicate a positive but weaker influence.
- Negative values suggest a negative correlation, meaning that the time window has an inhibitory effect on neural activity in that channel.
Practical Use:
By examining the weight matrix w, researchers can pinpoint which temporal aspects of the stimulus are most relevant for explaining neural responses. This information is crucial for understanding how auditory stimuli are processed in the brain and aids in the decoding of auditory speech perception.
  • asked a question related to Matrix Analysis
Question
2 answers
Greetings to everybody.
For a research paper, I've recently started learning more about the psychological matrix of digital marketing. Could someone perhaps provide me with any relevant papers that will enable me to identify the gap?
Relevant answer
Answer
The psychological matrix of digital marketing refers to the psychological factors that influence consumer behavior and decision-making in the context of digital marketing. These factors include:
Perception: This refers to how consumers perceive digital marketing messages, including the visual design, messaging, and branding of digital content.
Motivation: Consumers' motivations for engaging with digital marketing can vary depending on their needs, goals, and desires. Understanding these motivations can help marketers create content that resonates with their target audience.
Attitude: Consumers' attitudes towards digital marketing can be influenced by various factors such as trust, credibility, and perceived value. A positive attitude towards digital marketing can increase the likelihood of engagement and conversion.
Learning: Consumers' learning and knowledge acquisition through digital marketing channels can influence their decision-making process. Marketers can use various methods such as educational content, tutorials, and reviews to enhance consumer learning.
Memory: Consumers' memory of digital marketing messages and brand impressions can affect their long-term brand loyalty and repeat purchase behavior. Repetition, consistency, and emotional appeal can help create lasting brand memories.
Emotion: Consumers' emotional responses to digital marketing messages can play a significant role in their decision-making process. Emotional appeals such as humor, fear, or joy can increase engagement and conversion.
Understanding and leveraging these psychological factors can help digital marketers create more effective and impactful campaigns that resonate with their target audience.
  • asked a question related to Matrix Analysis
Question
5 answers
i newly started my phd in structural health monitoring and need to understand some basic terms.
Relevant answer
Answer
It would help if you show what you measure. I cant see any meaning to the y-axis on the right as a «system order». The height of the peaks is a measure of the modal mass and damping of your measured object.
  • asked a question related to Matrix Analysis
Question
2 answers
I have a matrix based on survey data that gives negative eigenvalues. I have converted negative eigenvalues to positive ones and now trying to figure out how to obtain a positive definite matrix employing the positive eigenvalues. I would appreciate it if you help me in programming the code on MATLAB. Please also feel free to share in any other programming language.
Relevant answer
Answer
Can you show the mathematical expression of what you do? Then I can help
  • asked a question related to Matrix Analysis
Question
10 answers
Exploring the similarities and differences between these three powerful machine learning tools (PCA, NMF, and Autoencoder) has always been a mental challenge for me. Anyone with knowledge in this field is welcome to share it with me.
Relevant answer
Answer
In machine learning projects we often run into curse of dimensionality problem where the number of records of data are not a substantial factor of the number of features. This often leads to a problems since it means training a lot of parameters using a scarce data set, which can easily lead to overfitting and poor generalization. High dimensionality also means very large training times. So, dimensionality reduction techniques are commonly used to address these issues. It is often true that despite residing in high dimensional space, feature space has a low dimensional structure.
Regards,
Shafagat
  • asked a question related to Matrix Analysis
Question
3 answers
I am following the way how a previous paper (PMID: 30948552) treating their spatial transcriptomic (ST) data. It seems like they combined all expression matrix (not mentioned whether normalized or log transformed) of different conditions, and calculate a gene-gene similarity matrix (by Pearson rather than Spearman), and they finally got some gene modules (clustered by L1 norm and average linkage) with different expression between conditions.
So I have several combination of methods to imitate their workflow.
For expression matrix, I have two choice. The first one is a merged count matrix from different conditions. The second one is a normalized data matrix (default by NormalizeData function in seurat, log((count/total count of spot)*10000+1)). For correlation, I have used spearman or pearson to calculate a correlation matrix.
But, I got stuck.
When I use a count matrix, no matter which correlation method, I get a heatmap with mostly positive value pattern, which looks strange. And for a normalized data matrix (only pearson calculated), I got a heatmap with sparse pattern, which is indescribably strange too.
My questions:
  1. Which combinations of data and method should I use?
  2. Would this workflow weaken the correlation of the genes since some may have correlations only in specific condition?
  3. Whatever you think of my work?
Looking forward to your reply!
Relevant answer
Answer
Correlation AnalyzeR: functional predictions from gene co-expression correlations
  • Henry E. Miller &
  • Alexander J. R. Bishop
BMC Bioinformatics volume 22, Article number: 206 (2021) Cite this article
  • 2563 Accesses
  • 1 Citations
  • 2 Altmetric
  • Metrics details
Abstract Co-expression correlations provide the ability to predict gene functionality within specific biological contexts, such as different tissue and disease conditions. However, current gene co-expression databases generally do not consider biological context. In addition, these tools often implement a limited range of unsophisticated analysis approaches, diminishing their utility for exploring gene functionality and gene relationships. Furthermore, they typically do not provide the summary visualizations necessary to communicate these results, posing a significant barrier to their utilization by biologists without computational skills.
Background Almost two decades after the completion of the Human Genome Project, the functionality of many genes remains largely enigmatic [1]. Many such “enigmatic genes” have immense biological significance, exemplified by the associations of thousands with cancer outcome [2]. Even genes which are well-characterized often play unexpected roles in different biological contexts (e.g., EZH2 is both a tumor-suppressor and an oncogene in different cancers [3]). Gene co-expression correlations provide a robust methodology for predicting gene function, as genes which share a biological process are often co-regulated [4,5,6]. Similar insights can be gained from using protein interaction (for example STRING [7] and InterologFinder [8]), phenome data, or even the combination of both [9]. Irrespective, generating expression data remains a cost-effective approach and co-expression analysis remains a prominent tool for exploratory systemic evaluation, largely because it is capable of considering gene co-expression across the genome. However, the applications which have been developed for such inference are hampered by key limitations. Tools like COXPRESdb [10] and GeneFriends [11] calculate gene set over-representation on an arbitrary number of co-expressed genes. Alternatively, GeneMANIA [12] and GIANT [13] construct co-expression networks and calculate gene set over-representation on an arbitrary number of nodes. Neither approach is sensitive to the genome-wide distribution of co-expression correlations or, with the exception of GIANT, differences between tissue/disease conditions. Furthermore, these functional predictions are limited in scope and do not generate relevant, user-friendly visualizations, limiting their utility for biologists without bioinformatics skills.Recently, Lachmann et al. introduced ARCHS4, a database with thousands of standardized RNA-Seq datasets [14]. We re-processed these data, calculating co-expression correlations with respect to tissue and disease (cancer/normal) condition and provided the results in a publicly accessible database. We now present Correlation AnalyzeR, a user-friendly interface to this co-expression database with a suite of tools for de-novo prediction of gene function, gene–gene relationships, and biologically relevant gene subgroups to facilitate discovery of novel relationships within genes of interest.
  • asked a question related to Matrix Analysis
Question
4 answers
I want to run a correlation matrix analysis between multiple response variables. The data was obtained from the operation of a continuous bioreactor over a 330 days period, but the operating conditions were changed every three months. I am not sure if I have to run a correlation test for each operational strategy (i.e. the condition that was changed every three months - in this case was the concentration of a contaminant) or if I can run a single test for the whole operation of the reactor.
The results make more sense if I run a single test, but I am not sure if I can do that assuming the conditions were changed. But I know that, for environmental analyses as whole, it is quite common to run correlation analysis even when there are other factors changing over time.
Relevant answer
Answer
You can get answers of all these questions at a time by wisely utilizing technique of regression analysis. Of course, it will include use of dummy variables, ANOVA, ANCOVA etc.
  • asked a question related to Matrix Analysis
Question
3 answers
I want to keep some results in a matrix then print them into a  excel file. Because there are so much data, it is difficult to export them one by one to txt files. Can anybody have some experiences to share? Thank you!
Relevant answer
Answer
This is a good question.
  • asked a question related to Matrix Analysis
Question
5 answers
Are there any conditions under which the difference between two matrices i.e. A-B will be invertible? In particular, I have a positive definite matrix A but B is a square matrix not necessarily symmetric. However, B has the form MP-1N with P as a square invertible matrix and M and N as arbitrary matrices of appropriate dimensions.
Relevant answer
Answer
I think the question is not well posted.
B should be square and is not an additional condition!!
Also, A is a square; otherwise, there is no meaning to ask about the inverse.
In all cases, A - B is a square matrix, and det(A-B) is not zero, ensures the invertibility of A - B.
  • asked a question related to Matrix Analysis
Question
5 answers
I have confirmed that the Hessenberg determinant whose elements are the Bernoulli numbers $B_{2r}$ is negative. See the picture uploaded here. My question is: What is the accurate value of the Hessenberg determinant in the equation (10) in the picture? Can one find a simple formula for the Hessenberg determinant in the equation (10) in the picture? Perhaps it is easy for you, but right now it is difficult for me.
Relevant answer
  • asked a question related to Matrix Analysis
Question
9 answers
Dear friends:
In some calculation in control theory, I need to show that the following matrix
E = I - (C B)^{-1} B C
is a singular matrix. Here, B is (n X 1) column vector and C is (1 X n) row vector. Also, I is the identify matrix of order n. So, the matrix E is well-defined.
I have verified this by trying many examples from MATLAB, but I need a mathematical proof.
This is perhaps a simple calculation in linear algebra, but I don't see it!
Any help on this is highly appreciated.. Thanks..
Relevant answer
Answer
Dear Sir Victor Palamodov,
You are right, it is not true for the matrix. But in the question, the order of B is n*1 and order of C is 1*n. So B*C is a n*n matrix and that is a rank-one matrix.
  • asked a question related to Matrix Analysis
Question
5 answers
where matrices A and B are known while X and Y are to be solved.
For example,
A=[a 0;
0 b];
B=[a a 0;
0 0 b;
0 0 b;];
a and b are known elements.
It is easy to see that the solution is
X=t*[1 1 0;
0 0 1;];
Y=1/t*[1 0;
0 1;
0 1;];
where t is any non-zero real number.
But how to derive this solution step by step in a systimatical way?
It would be better if there is a programmable approach.
Relevant answer
Answer
Dear Liming, at a first glance the problem seems not to have a unique solution in general. Assuming for example that all the matrices are nxn, you need to solve n2 equations (corresponding to the elements of B) in 2n2 unknowns (the elements of X and Y.
If what matters is to find a solution, even if not unique, a possible approach could be to look for a minimum of the norm ||XAY-B|| with respect to the entries xij and yij. To get a differentiable function, one could take the Frobenius norm of the residual XAY-B.
  • asked a question related to Matrix Analysis
Question
12 answers
I have a dataset made by plant species as presence/absence (1/0) found in 133 samples within an archeological area. Every sample has a particular substrate, a position in the monument and it is made in a monument (for substrate, position and monument I have data as words, no numbers, eg for substrate I have green rock or black rock). My aim is to see if some species or groups of species are more associated with some substrates or positions or monuments or if there is any other pattern. What method would you recommend me to try with? Thank you very much in advance!
Relevant answer
Answer
You need to apply binary models then. Logit and Probit models are good in this case.
Besides, you can apply some non-parametric techniques that may be good to compare between the groups you have. For example, you can apply kernel densities. This helps you to compare microsites.
You can also categorize your microsites by defining: Small, Medium, large....and here you can apply ordered logit model
  • asked a question related to Matrix Analysis
Question
6 answers
Dear researchers
The modeling of P-Delta for the structural elements (specially columns) reduce the stiffness of the structure and consequently increase the period of vibration. Now, these changes are negligible when the structure and P-Delta effects are modeled in OpenSees software. Instead, the mentioned changes are more noticeable when modeling is perform in the softwares such as Etabs and Sap2000.
How to apply P-Delta effects is the reason for difference changes due to P-Delta modeling in different softwares.
Now with all these interpretations, what is the most accurate method for modeling P-Delta effects? In other words, In which software are stiffness changes calculated more correctly due to modeling of P-Delta effects?
As you know, In Etabs and Sap2000 software, P-delta effects are applied to the structure by defining a gravity load combination, while this procedure is performed in OpenSees using geometric transformation (second-order P-Delta effects) and its effects on stiffness matrix.
  • asked a question related to Matrix Analysis
Question
6 answers
If I use a sparse solver (e.g. PARDISO, MUMPS) for solving large unstructured sparse matrices, what is the effect of the initial sparsity pattern on the solution time?
Did anybody work on that? Papers, reports, tests?
Relevant answer
Answer
I am following up on this thread because I have a question that is somehow relevant to what you discussed.
I am curious if it is possible to use the symbolic factorization of a less sparse matrix for a more sparse matrix? Specifically, A is a sparse matrix; I know that all the non-zero indices of B are also non-zero in A, but not vice-a-versa. If I know the symbolic factorization of A would it be possible to use that to obtain the numerical factorization of B?
It sounds to me that it should be possible but I am trying this with the Eigen library and if B is way more sparse than A (but with the constraint I mentioned above) this idea does not work anymore. Can someone explain why?
I am testing this with SparseLU and SparseQR solvers in Eigen 3.3.7
  • asked a question related to Matrix Analysis
Question
5 answers
I want to calculate the bending moment and shear forces of a reinforced concrete beam using direct stiffness matrix method. As the upper portion of the beam is in compression and lower portion is in tension, so what value of Modulus of Elasticity should i use in the stiffness matrix considering reinforcement ?
Please provide the calculation steps or example if possible.
Thank you in advance.
Relevant answer
Answer
You should know all the required details including the boundary condition of the structural member. Depending on the conditions of your case, please study the very useful, brief and having full of example source entitled " BEAM ANALYSIS USING THE STIFFNESS METHOD" given via the following link:
i hope it is useful for you.
All the best.
  • asked a question related to Matrix Analysis
Question
1 answer
A new paper in "Constructive Mathematical Analysis" by Prof. Michele Campiti.
You can download the paper for free:
Relevant answer
Answer
G. C, Rota wrote his thesis under Nelson Dunford that characterized the extensions of OD operators via the concept of boundary values. It appeared in Communications of Pure and Applied Mathematics, in 1958. Might what to check that out relative to this paper.
  • asked a question related to Matrix Analysis
Question
6 answers
I attached the equation here in a captured picture. Well I just started learning MATLAB in signal and image processing any recommends for a good and simple tutorial materials, videos. ThanQ in advance.
Relevant answer
Answer
KLDIV Kullback-Leibler or Jensen-Shannon divergence between two distributions. KLDIV(X,P1,P2) returns the Kullback-Leibler divergence between two distributions specified over the M variable values in vector X. P1 is a length-M vector of probabilities representing distribution 1, and P2 is a length-M vector of probabilities representing distribution 2. Thus, the probability of value X(i) is P1(i) for distribution 1 and P2(i) for distribution 2. The Kullback-Leibler divergence is given by:
KL(P1(x),P2(x)) = sum[P1(x).log(P1(x)/P2(x))]
If X contains duplicate values, there will be an warning message, and these values will be treated as distinct values. (I.e., the actual values do not enter into the computation, but the probabilities for the two duplicate values will be considered as probabilities corresponding to two unique values.) The elements of probability vectors P1 and P2 must each sum to 1 +/- .00001.
A "log of zero" warning will be thrown for zero-valued probabilities. Handle this however you wish. Adding 'eps' or some other small value to all probabilities seems reasonable. (Renormalize if necessary.)
KLDIV(X,P1,P2,'sym') returns a symmetric variant of the Kullback-Leibler divergence, given by [KL(P1,P2)+KL(P2,P1)]/2. See Johnson and Sinanovic (2001).
KLDIV(X,P1,P2,'js') returns the Jensen-Shannon divergence, given by [KL(P1,Q)+KL(P2,Q)]/2, where Q = (P1+P2)/2. See the Wikipedia article for "Kullback–Leibler divergence". This is equal to 1/2 the so-called "Jeffrey divergence." See Rubner et al. (2000).
EXAMPLE: Let the event set and probability sets be as follow: X = [1 2 3 3 4]'; P1 = ones(5,1)/5; P2 = [0 0 .5 .2 .3]' + eps;
Note that the event set here has duplicate values (two 3's). These will be treated as DISTINCT events by KLDIV. If you want these to be treated as the SAME event, you will need to collapse their probabilities together before running KLDIV. One way to do this is to use UNIQUE to find the set of unique events, and then iterate over that set, summing probabilities for each instance of each unique event. Here, we just leave the duplicate values to be treated independently (the default): KL = kldiv(X,P1,P2); KL = 19.4899
Note also that we avoided the log-of-zero warning by adding 'eps' to all probability values in P2. We didn't need to renormalize because we're still within the sum-to-one tolerance.
REFERENCES: 1) Cover, T.M. and J.A. Thomas. "Elements of Information Theory," Wiley, 1991. 2) Johnson, D.H. and S. Sinanovic. "Symmetrizing the Kullback-Leibler distance." IEEE Transactions on Information Theory (Submitted). 3) Rubner, Y., Tomasi, C., and Guibas, L. J., 2000. "The Earth Mover's distance as a metric for image retrieval." International Journal of Computer Vision, 40(2): 99-121. 4) <a href="http://en.wikipedia.org/wiki/Kullback%E2%80%93Leibler_divergence">Kullback–Leibler divergence</a>. Wikipedia, The Free Encyclopedia.
  • asked a question related to Matrix Analysis
Question
3 answers
I am analysing the results of the multi-class confusion matrix. I am a bit confused about the overall accuracy and average accuracy of each class. In multi-class confusion matrix, is the average accuracy of each class is equal to the accuracy of full confusion matrix?
Please guide me and if you can recommend any book or research article for multi-class confusion matrix analysis. It will be a huge help.
Relevant answer
Answer
The average accuracy of each class is equal to the accuracy of the full confusion matrix only if the number of instances is identical across classes. If some classes occur more frequently (more data loaded into one column than another) then the two numbers will be different.
  • asked a question related to Matrix Analysis
Question
1 answer
let we have frame A and frame B, then we rotate the frame system by theta, around vector K which is the axis of a finite rotation, how to derive the rotation matrix of frame A with respect to fram B around vector K? here is the derived matrix
the question from "introduction to robotics mechanics and control/John J. Craig
"
Relevant answer
Answer
I recommend the book by Prof. Schiehlen:
SCHIEHLEN, Werner; EBERHARD, Peter. Applied dynamics. Berlin: Springer, 2014.
The kinematic differential equations with the rotational Jacobian Matrix will solve your problem.
  • asked a question related to Matrix Analysis
Question
2 answers
I want to study the matrix pencils which occur during solving optimal control theory problems.
Relevant answer
Answer
Dear Gyan,
I suggest you to see links in topic.
-Solving Linear-Quadratic Optimal Control Problems on Parallel ...
-New results in singular linear quadratic optimal control (PDF ...
-The Generalised Discrete Algebraic Riccati Equation arising in LQ ...
-SR and SZ algorithms for the symplectic (butterfly ... - Science Direct
-Linear Matrix Inequalities in System and Control ... - Stanford University
Best regards
  • asked a question related to Matrix Analysis
Question
10 answers
The famous Sylvester matrix was studied in 1854. It is defined as showed in the picture uploaded here. My question is: What and where is the inverse of the Sylvester matrix?
Relevant answer
Answer
Dear Dr. Cherdieu
I will read it as soon as I can and then reply you here
  • asked a question related to Matrix Analysis
Question
3 answers
In matrix analysis we are able to find the determinants and eigenvalues of nonsingular matrices according to their standard definitions. We know that the theory of fuzzy soft matrix differs from what we have in matrix analysis. How we can find the eigenvalues and determinant of fuzzy soft matrices?
Relevant answer
Answer
  • asked a question related to Matrix Analysis
Question
15 answers
Dear All
Could you please tell me what and where the inverse of a concrete lower triangular matrix showed in the picture is? Can you help compute the inverse matrix explicitly?
Best regards
Feng Qi (F. Qi)
Relevant answer
Answer
Dear Nazari
Please down the manuscript from the following address
Feng Qi, Xiao-Long Qin, and Yong-Hong Yao, The generating function of the Catalan numbers and lower triangular integer matrices, Preprints 2017, 2017110120, 12 pages; Available online at https://doi.org/10.20944/preprints201711.0120.v1
  • asked a question related to Matrix Analysis
Question
18 answers
P=parity operator having eigenvalue + or - 1. x is the co'ordinate . Suggest matrix method to prove the result .
B.Rath
Relevant answer
Answer
Sorry, could you formulate better the question?
Given P.x=-x, in matrix analysis P.P^-1 = I. Maybe I do not understand your nomenclature...
  • asked a question related to Matrix Analysis
Question
4 answers
I'm currently working on the alkaloid composition of the skin secretions of salamanders and am trying to test whether this composition differs between different populations.
In line with previous research on alkaloid profiles in poison frogs, I tested for differences among populations using an ANOSIM. Since I work with relative concentrations (a.k.a. proportions), I thought it was more appropriate to construct an Aitchison dissimilarity matrix for this analysis.
I was further interested in seeing which exact compounds were responsible for differences between the populations. A SIMPER, often associated with an ANOSIM, seemed perfect ... but SIMPER in R uses Bray-Curtis dissimilarities.
I was wondering if there is an alternative for SIMPER that uses other indices of dissimilarity? Could a PCA do the same?
Relevant answer
Answer
GIlles, although this doesn't answer your question, just for your information, SIMPER and ANOSIM have serious issues since it is very difficult to determine whether differences are attributed to within-group or between-group variation, which may provide misleading results. You may want to look Warton et al. 2012. Distance-based multivariate analyses confound location and dispersion effects. Methods in Ecology and Evolution, 3, 89--101.
  • asked a question related to Matrix Analysis
Question
9 answers
Recently, I have read some references applying proper orthogonal decomposition to solve unsteady aerodynamic problems. I'm very interested in this topic and really want to learn more about it. For now, I'm not sure how this method works, so, can anyone who is familiar with this topic give me some advice about starting in this field? Or some recommendations for related materials (books and references that may contain necessary mathematics background)? Thanks a lot!
PS: I'm familiar with linear algebra and basic matrix analysis, but I don't know much about control theory since I majored in aerodynamics.
Relevant answer
Answer
Sometimes, you might need to apply other modal decomposition technique instead of POD. For example, DMD would be proper answer for some cases. 
You can find open source codes here:
and I found this comparison useful:
Comparison of optimized Dynamic Mode Decomposition vs POD for the shallow water equations model reduction with large-time-step observations
  • asked a question related to Matrix Analysis
Question
3 answers
I would like a code from lumeric FDTD and I would like to convert that code into MATLAB code. How can I do that? I would like to find the function of my simulations so for this I have to convert FDTD code into the MATLAB code.
Relevant answer
Answer
 HI GAYS 
I would like a code from lumeric FDTD WITH PLASMONICS TO FIND E&h?
thank you so much
  • asked a question related to Matrix Analysis
Question
7 answers
Consider two system of nonlinear equations. In this case we will get F(x1, x2)=[c1 c2] ^T; Based on my problem, I need to calculate inverse of F. Also, I have try pinv(F), inv(F) but code gives
............................................
??? Error using ==> sym.svd
Too many input arguments.
Error in ==> pinv at 29
[U,S,V] = svd(A,0);
Error in ==> sys_4th_kt at 48
t=f(y)*pinv(f(x0));
............................
The following one:
ux = Df(x0)\f(x0); %System of linear equation Ax = b, x = inv(A)*b, but better way is x=A\b.
y = x0 - (1)*ux;
t=f(y)*pinv(f(x0));
p=Df(x0)*(I-t)^2;
ux1 = f(y)*pinv(p);
x1 = y-ux1; % 4th order Kung and Traub 
Relevant answer
Answer
You need to understand the meaning of inverse and where it exists.
  • asked a question related to Matrix Analysis
Question
10 answers
Due to  R. Penrose. Any matrix can be partitioned in the form
[
A       B
C    CA⁻¹B
]
(using a suitable arrangement of rows and columns),  A  being any non-singular submatrix whose rank is equal to that of the whole matrix. Please explain proof (verify) that   AA∗ + BB  and  AA + BB  are positive definite.
Relevant answer
Answer
thanks dear Wiwat and Hanifa nice answers..
  • asked a question related to Matrix Analysis
Question
19 answers
Let A, B ∈ ℂn×n where A is an invertible matrix (and A⁻¹ ≠ AT), but B is a noninvertible. Let C = AB. What is C? (C is the Moore-Penrose inverse of C). Suppose that rank C = rank C². What is C#? (C# is the group inverse of C).
Relevant answer
Answer
Dear Pedro, for the group inverse, yes. just  P has to be  left invertible and Q right invertible, and of course rank A= rank A2 (the condition of existence). But for the Moore-Penrose, we need orthogonality or which is equivalent for the 3rd and the 4 th conditions. So if we take P just left invertible, that means it has a full column rank, we write PAQ=P(AQ) , then, we need  (AQ) to has full row rank to have (PAQ)+ =Q'A+ P', where P' and Q' are left and right inverses of P and Q respectively.
Excuse me, I just checked, for the group inverse, No. because there is no commutativity, i.e. the 3rd equation in the definition of the group inverse.
  • asked a question related to Matrix Analysis
Question
16 answers
How to find by hand or by software a doubly stochastic matrix? See the picture uploaded with this message. Thank a lot.
Relevant answer
Answer
This problem proposed by Professor Qi Feng from the book《MARSHALL A W, OLKIN I, ARNOLD B C. Inequalities: theory of majorization and its application (Second Edition) [M]. New York : Springer Press, 2011.》pp.295-296.
  • asked a question related to Matrix Analysis
Question
3 answers
i am working on Array signal Processing where i have to estimate angles of the transmitted signals. one technique (MUSIC) is purely based on EVD which is very complex. I need a less complex technique. can you suggest me..
Relevant answer
Answer
whats the problem with EVD, or why are u calling it 'complex'?
As the previous comment stated, it is literally the easiest and fastest way to obtain an eigenvalue decomposition. If you need a speed increase than try a hermitian matrix  EVD solver.
  • asked a question related to Matrix Analysis
Question
13 answers
I need a reference to the integral analogue of Cauchy-Binet identity, but I can not find such a reference. Could you please help me? Thank you in advance.
Relevant answer
Answer
Dear Viera
Thank you very much for your detailed answers to my questions. Now I have increased some knowledge about pronounciation in Russian and the like. I will cite the reference by [1] above.
Moreover, if I could use the Cauchy-Binet (Binet-Cauchy) formula to complete a previous draft on the logarithmic concavity for the Riemann Zeta function, I would acknowledge you and others, who ever gave me a hand, in the final work.
Best regards
Feng
  • asked a question related to Matrix Analysis
Question
8 answers
I am studying the dynamics of the Origin / Destination data. Currently I have access to flight data but need more public data sets ( e.g. mobile phone usage, car traffic, train, bus, etc. ) for further experiments. Any ideas?
Relevant answer
Answer
I think you can find accurent data for test  in this website: http://www.bgu.ac.il/~bargera/tntp/
  • asked a question related to Matrix Analysis
Question
2 answers
I have provided a partial sets of data but I can not put the in to the Matlab as a single matrix. As the dimensions of matrix are different, Matlab can not recognize it as a single matrix. In attached file a,b,c are input and r is output.
Relevant answer
Answer
You have to complete the missing values. Try to avg the values and complete the missing
  • asked a question related to Matrix Analysis
Question
7 answers
Hi,  I transformed the variables in Z scores, and then, when I analyze with principal component analysis (PCA), we have table of rotated component matrix (with 2 parts: Raw and Rescaled), even in variance table, there is these two parts. So, which one must be considered
Relevant answer
Answer
Dear  Francois
You can use transformation to a percentage of the mean instead of Z score , for example, to compare variance in two groups different in the units we use the coefficient of variation ( C. V. % ), this approach cancel the role of the units and use the percentage in the calculation.
Good Luck
  • asked a question related to Matrix Analysis
Question
13 answers
i need to enhance my self in math, i need some books in these fields of interest.
Relevant answer
Answer
thank you very much Rodrigo Augusto Ricco and M. S. N. Murty 
  • asked a question related to Matrix Analysis
Question
1 answer
I modifed short carbon fiber and use it in epoxy matrix and I want to know how its modifcation can affect viscosity and how agglomeration can affect viscosity?
please introduce some good papers if you know
thank you in advance
Relevant answer
Answer
What are the dimension of the short fibers, the volume content in the matrix and the fiber diameter?
  • asked a question related to Matrix Analysis
Question
6 answers
I am using R for creating DocumentTermMatrix and then converting it to normal matrix for further processing. There are 26,000 records and 4 columns, while converting DocumentTermMatrix to normal matrix it get hang. I am using syntax abc<- as.matrix(dtm), where dtm contains document term matrix. Ram size of my computer is sufficient. Can anybody give me solution.
Relevant answer
Answer
Probably you have to check the memory status during execution of command as.matrix(), given your operational system (for windows leave open the task manager). What is your RAM in GB? Are you using 32 or 64 bit computer?
  • asked a question related to Matrix Analysis
Question
6 answers
I am trying to calculate eigenvalues of a 8*8 matrix. The matrix have 6 different parameters g1, g2, k1, k2, B, J. To calculate eigenvalues, I have used Mathematica and Matlab both. In both programs, I got polynomial of the 8 power. But I am unable to find generalized solution from it. How do i resolve this?
The matrix form like:
2B  0  g2  k2  g1  k1  2J  0
0  2B  k2  g2  0  g1  0  2J
g2  k2  0  0  2J  0  g1  k1
k2  g2  0  0  0  2J  0  g1
g1  0  2J  0  0  0  g2  k2
k1  g1  0  2J  0  0  0  g1
2J  0  g1  0  g2  0  -2B  0
0  2J  k1  g1  k2  g1  0  -2B
Relevant answer
Answer
 First, let's be clear about what you can do and what you can't do.  The characteristic equation for an 8x8 matrix to determine the 8 eigenvalues is in general an eighth order polynomial.  First you may want to read about Abel's Impossibility Theorem ( see: http://mathworld.wolfram.com/AbelsImpossibilityTheorem.html ) for finding formulas for computing eigenvalues from polynomials. In particular see the link for quintic polynomials (http://mathworld.wolfram.com/QuinticEquation.html)  . So in general the only hope you have for a 8th order polynomial is if the substitution z=y^2 reduces the 8th order polynomial in y to a 4th order polynomial in z, which would then allow you to find an analytic expression for the eigenvalues.  In your case this is not possible as the coefficients (B, g1, g2, k1, k2, J) are not specified.
Nevertheless,  using a software packages ( here  I will discuss using Mathematica) you can readily explore the solution space for the eigenvalues. My preliminary calculations shows that the eigenvalues for random real numbers that I have selected  for parameter values between  (-2, 2) and  (0,5) give  eight real eigenvalues: 4 positive and 4 negative.
I have attached a PDF of a Mathematica notebook that illustrates these calculations. Enjoy 
  • asked a question related to Matrix Analysis
Question
28 answers
I want to find the eigen frequencies from the stiffness and mass matrix extracted from COMSOL. Unfortunately after using eigs function in MATLAB i couldn't get the right result as in COMSOL
Relevant answer
Answer
Nils i got the answers, thanks. My mistake i didnt take 2*pi into consideration.
  • asked a question related to Matrix Analysis
Question
9 answers
There are some algorithms for transforming arrowhead matrices to tridiagonal form. Is any arrowhead matrix similar to a tridiagonal matrix? What techniques can we use to prove that an arrowhead matrix is similar to a tridiagonal matrix?
Relevant answer
Answer
For symmetric matrices there are ways to show the similarity. One way is to start with an arrowhead matrix, and find its eigenvalues, then construct a tridiagonal matrix with those eigenvalues. The existence of the tridiagonal matrices with a given set of eigenvalues is shown in several papers. One best source is: A.L. Duarte, Construction of acyclic matrices from spectral data, Linear Algebra Appl., 113 (1989) 173–182.
Then the easiest way to show the similarity I think is by the diagonalization.
  • asked a question related to Matrix Analysis
Question
6 answers
Number Theory  Matrix Analysis
Relevant answer
Answer
This is a good question.
A good place to start looking for an answer to this question is
HANS SCHNEIDER, Olga Taussky-Todd/s Influence on Matrix Theory and Matrix Theorists:
More to the point, consider
LENNY FUKSHANSKY, DIOPHANTINE APPROXIMATIONS AND GEOMETRY
OF NUMBERS, 2006:
See Section 4. Theorems of Blichfeldt and Minkowski, starting on page 26.   And, then, see Section 5. Successive minima, starting on page 33, especially Minkowski's successive minima theorem on page 34.   And Section 6. Inhomogeneous minimum, where Minkowski's successive minima theorem in terms of lattices is given, starting on page 39.
  • asked a question related to Matrix Analysis
Question
4 answers
The rank of a matrix A is the dimension of the vector space generated by its columns. It shows the dependent and independent column of matrix A.
Suppose I have a nxn matrix A with rank n/2. As a specific example, let A =[3 1 3 1;1 4 1 4;3 1 3 1;1 4 1 4] with the two eigenvalues 4.7639, 9.23361 and the other two zero. Matrix A is 4x4 but its rank is 2. In other words, matrix A is actually 2D but it is represented in 4D.
My question is how to get actual 2D representation of matrix A (Eigenvalue in 2D and 4D should be same)? Since matrix A consist of four similar 2x2 matrices, can I take the 2x2 matrix as its representation in 2D(This matrix has eigenvalue half that of matrix A)? Or I have to do projection or something?
Please help!
Relevant answer
Answer
Write down a basis for the set of vectors generated by the two eigenvectors v_1, v_2.  
The matrix A represents a linear transformation L of R^4 to R^4, but relative to this basis of a two dimensional space, it maps v_1 to lambda_1 v_1 and v_2 to lambda_2 v_2.
Hence, *with respect to this basis for a 2-dimensional subspace* L is represented by a 2x2 matrix B, where 
B= [ lambda_1       0            ]
      [    0               lambda_2 ]
This is what I meant about regarding a matrix as representing the action of a linear transformation with respect to a basis or two bases.
  • asked a question related to Matrix Analysis
Question
5 answers
I have been looking at research paper that discuss the performance of a parallel matrix multiplication algorithm on GPU and often time they refer to different sizes of a matrix and the show the performance for each size.
What I like to know is, what does this size refer to? Is it the size of the matrix A or matrix B or the resultant matrix C?
Thanks
Relevant answer
Answer
@Abdur  Usually you vary the size of the matrix for performance analysis.  Typically, better parallel speedup is obtained for large problem sizes (i.e. bigger matrices).
  • asked a question related to Matrix Analysis
Question
8 answers
Let M be a convex and compact subset of m by n matrices (m is strictly less than n). If for each A in M, A has  full rank, then there is an d in Rn such that for each A in M, the matrix [AT dT] has full rank.
I was wondering if someone proves this conjecture or provides a counterexample.
Relevant answer
Answer
Moslem,
I am sorry
There is  an obvious mistake in my proposed argument for $m>1$, however I think that  my argument for $m=1$ is correct.
My mistake for $m>1$ is that the complement S of full rank matrices is not convex, but in Hahn banach theorem we need convexity of both compact set K and closed set S. 
BTW, you called your question as a "conjecture". Where is  a  reference for this problem. Is it a well known conjecture?
  • asked a question related to Matrix Analysis
Question
3 answers
Hi, I have:
B=A*T+error
I would like a fast way to estimate transformation matrix (on Matlab if possible) that minimize the error where:
B and A are two matrix of N 2d points coordinates:
A=[Xi Yi 1] , B=[Xi' Yi']
and T: 2d transformation matrix ( tx, ty for translation, r for rotation and sx,sy for scale)
T=|Sx*cos(r)   -Sy*sin(r)|
    |Sx*sin(r)    Sy*cos(r) |
    |tx                ty            |
where:
-pi/4<r<pi/4       1<Sx,Sy<10        -1000<tx,ty<1000
Thanks :)
Relevant answer
Answer
Thanks for responses, and sorry for my bad English!!, Yes I have already tested "optimtool" functions on Matlab (may be applied on any non linear function), however, the results are mostly local optimum. I was hopping for more specific solution to the problem with numericals approaches, here I have downed the problem as, above there is a little mistake (between sx and sy):
[Xi Yi]  and [Xi' Yi'] are sets of centred 2d point, so we do not bother with translation (tx, ty)
[Xi' Yi'] = [Xi Yi] * |Sx    0| * | cos(r)  -sin(r)|   = [Xi Yi] * Sc * Rot
                           |0    Sy|   | sin(r)    cos(r)|     
The result may be threshold after, to satisfy constrains on r, sx and sy.
Rot matrix is orthonormal, and "pinv" is pseudo inverse matrix
Sc*Rot=pinv([Xi Yi])*[Xi' Yi']
use of SVD decomposition:
Sc*Rot=V*S*D    , where V and D are orthonormal matrix:
Here we can assume :  Rot=D  and Sc=V*S, however  Sc is diagonal matrix,
Then, is there any approximation that may estimate Sc (diagonal matrix) to minimize error between [Xi' Yi'] and transformed [Xi Yi].
Thanks :)
  • asked a question related to Matrix Analysis
Question
3 answers
I have imported into Matlab an excel sheet with over 500,000 voxels each assigned a t value and x,y,z coordinates based on fMRI BOLD signal results. I would like to form clusters of activation in 6 regions of the brain from the activated voxels. I would like to know the best way (possibly method or algorithm) to form clusters (accounting for overlapping active voxels) in Matlab, so that I am able to calculate the number of active clusters and volumetric features, such as volume of the clusters. I know one method is a density-based method which could scan a cube of 3*3*3 region and consider that region to be a cluster if a certain number of active voxels exist in there, but I want to know which method(s) in matlab is best to form clusters so that they best include active voxels regardless of shape. 
Relevant answer
Answer
I agree with the method provided above. But I wonder why in the first place the author got the t values and the coordinates in an xls file to start with. If this is fMRI imaging processing result, I suggest to use SPM to analyze the data and the final result (with clusters) would be easy to get, which would make your life easier. 
  • asked a question related to Matrix Analysis
Question
4 answers
i designed a non full rank H matrix and i want to get the G matrix for the encoder 
Relevant answer
Answer
Dear Hanifa,
Thank you for your kindness.
Regards,
Wiwat Wanicharpichat
  • asked a question related to Matrix Analysis
Question
5 answers
I am working on sparse matrices. I need a structured sensing matrix other than reed Solomon,BCH,LPDC,sparse circulant matrix ,Kronecker product,Toeplitz sensing matrix. any other new findings of family of measurement matrix?
Relevant answer
Answer
@Axel - the construction of Bourgain et al. is deterministic and is an amazing theoretical breakthrough. Unfortunately it relies on results from additive combinatorics which require the size of the matrices constructed to be too large to fit on a computer. 
@I. E. Karporin - In the original work of Candes-Romberg-Tao they show that in a random ensemble there is a very high probability that EVERY column column sub matrix with n/log n columns is close to an isometry. So the probability of writing down a truly random matrix with the property you describe is exponentially small.
  • asked a question related to Matrix Analysis
Question
3 answers
Hi,
I'm getting old and I'm not sure whether or not I've learnt any theories about solving polynomial matrix exiations, like the second order equation XTAX+BX+C=0.
Can anyone fresh my mind up or suggest where to learn more about this?
/Lars
Relevant answer
Answer
You may refer to Prof. V. Simoncini's personal webpage for her survey on matrix eqs. http://www.dm.unibo.it/~simoncin/list.html
  • asked a question related to Matrix Analysis
Question
3 answers
Find the attachment of the image consisting the data in array of matrix.
Thank you, regards. Manoj Kumar Nellore
Relevant answer
Answer
Dear Alaa Eleyan
Thanks for your reply
Kindly find the attachment .
Already I tried the function cell2mat(C), but my problem is different with that variable C values.
I have a cell consists of 18 X 9 matrix.After opening the matrix it will again show the 9 columns with 18 rows (with cell array format).
I want to convert the 18 rows with 9 columns (with cell array format) to matrix of each individual row and column of the data.
regards
manoj kumar
  • asked a question related to Matrix Analysis
Question
2 answers
If a and b are two random vectors distributed with some Probability density function. Then what would be the probability density function of following:
1. Random matrix obtained as A = diag(a),
2. Trace of a matrix, Tr(A)
3. Norm of a vector or Matrix,
4. Schur-Hadamard product two random vectors,
5. Outer product of two random vectors
Please refer to an Image attached here in shows problem with which I'm dealing. Would appreciate if anyone can point even me to some links for reference and books.
Thanks
Relevant answer
Answer
The word random implies unpredictable, but does not specify the distribution.  There must be a dozen ways to select a vector "at random" each with a different distribution.  To illustrate with a simpler example, suppose we select a random chord in a circle of radius 1.  What is the probability that the length exceeds sqrt(3)?  If we find our chord by choosing two points uniformly on the circle, the answer is 1/3.  But we could determine our chord by selecting one point uniformly in the interior of the circle, and then drawing the unique radius through this point, and then constructing the perpendicular line through our point to the radius.  This gives the unique chord having our point as its midpoint.  The probability that this is longer than sort(3) is 1/4.  Or a third method:  Select the radius at random, select a point on the radius uniformly, and then construct the perpendicular.  Now the probability is 1/2.  
The mechanism chosen for the random vector selection determines the distribution.
  • asked a question related to Matrix Analysis
Question
3 answers
I am creating a 'feedforwardnet' and using 'mapstd' to normalize the input
[pn,ps]=mapstd(training_data);
[tn,ts]=mapstd(target_data);
now I want to calculate various error functions RMSE, correlation coeff R, model efficiency MEnash etc. So how can I find the output data of the trained network corresponding to target data?
Relevant answer
Answer
Type the code bellow in the command window:
net(target_data)
  • asked a question related to Matrix Analysis
Question
7 answers
Hello everyone,
I have read the paper "Hilbert Transform of FFT Pruned Cross Correlation Function for Optimization in Time delay estimation" written by Tamin and Ghani in 2009 and I believe that the technique proposed by the authors is very interesting, so I'm trying to implement this technique.
Currently, I am applying the spline interpolation in RF signals, and then FFT and Hilbert transform, but I know that the Matlab resample function applies an anti-aliasing (lowpass) FIR filter to input during the resampling process, and resamples the sequence in input vector at X times the original sample rate using a polyphase implementation.
What is the best way to implement this technique?
Thank you very much.
Relevant answer
Answer
I appreciate your assist Jose
  • asked a question related to Matrix Analysis
Question
5 answers
Does anyone know some applications of the smallest or largest singular value and vector of an M-matrix?  I have learnt some in the synchronization and asynchronization of coupled chaotic dynamical systems, where these quantities of the M-matrix are desired. Any more description or references are much appreciated.
Relevant answer
You can check image compression algorithms with SVD, or check moore penrose inverse for the approached resolution of an inverse.
For smallest eigenvalues you can check the structural dynamics fields (modal truncation), or also linear bucking analysis.
  • asked a question related to Matrix Analysis
Question
7 answers
We have three square matrices A, B, C of the same dimension. Moreover B and C are positive semidefinite. In my analysis I need to calculate Tr[A.(B*C)], where * denotes the Hadamard product and . the standard matrix product. For some reason (I don't want to go into details) this representation is not so convenient for me. Do you know any kind of relation between the Hadamard product and standard matrix product so that this formula could be transformed?
Relevant answer
Answer
J.R. Schott, Matrix Analysis for Statistics, Second Edition,
          John Wiley & Sons, Inc., New Jersey, 2005.
Theorem 7.28. Let A and B be m×m nonnegative definite matrices (with ordered eigenvalues λ₁≥…≥ λ_{m}). Then
                              λ_{m}(A∘B) ≥ λ_{m}(AB).
On p.315
Problem 35. Let A, B, and C he m×n matrices. Show that
                              tr{(A′∘B′)C} = tr{A′(B∘C)}.
  • asked a question related to Matrix Analysis
Question
7 answers
I have a matrix with several zero columns. Since this matrix is singular, I can not invert it with the routine methods. I want a method to solve this problem.
Relevant answer
Answer
If the n'th column of your matrix is all zeros, then it means that the n'th independent variable in a system of equations does not play any role in determining the solution of the system of equations. So...simply remove all zero columns and insignificant variables from the system of equations. remove them because they have nothing to do with the solution of the system of equations. 
If your matrix was a square matrix to begin with, however, then you will be left with a non-square matrix that has more rows than columns. In other words, the system of equations is over determined.
To invert a matrix that has more rows than columns (an over determined system of equations), use singular value decomposition (SVD). There are standard algorithms for applying SVD. You can also use least square methods, but I prefer SVD.
SVD also works nicely for under determined systems of equations, when you have more columns than rows, in which case the solution of a system of equations is not unique. But I suspect that this is not your situation.
There are SVD routines that work on matrices of complex numbers (with real and imaginary parts).
As I think of it, I have not tried SVD on matrices with zero columns left in the matrix. SVD may also work if you leave the zero columns in the matrix. I am unsure. I would remove the columns, and the corresponding independent variables, however, because the matrix is telling you that those independent variables play no role in determining the solution of the system of equations.. 
Ronald
  • asked a question related to Matrix Analysis
Question
7 answers
If I have to arbitrary square matrices A and B of the same dimension, how do I calculate (A+B)-1 in general? It seems not an obvious problem. Has it already been solved?
Relevant answer
Answer
Apparently it is not an easy task. Everybody knows that if you consider a product of two square matrices GH, the inverse matrix is given by H-1G-1. But the problem of calculating the inverse of the sum is more difficult. However, it has been solved and a recursive formula for (G+H)-1 has been found. You can find details in the article by Kenneth S. Miller "On the Inverse of the Sum of Matrices". Find link to the article in the attachment.
  • asked a question related to Matrix Analysis
Question
6 answers
1. Consider the multiplication of  2 x 2 (for simplicity) square matrix of determinant zero with an unknown 2 x 1 matrix yielding a non-zero matrix. Is one of the entries of the unknown matrix necessarily zero?
2. If so, will the result still hold
(a) if the unknown matrix has the same order as the square matrix, and 
(b) for higher orders?
Relevant answer
Answer
A system of linear equation Ax = b is consistent if and only if b in column space of A.
Please see the attachment.
  • asked a question related to Matrix Analysis
Question
12 answers
I need some applicable cases with examples using MATLAB PSO app.
Relevant answer
Answer
Clerc, M. (2013). Particle Swarm Optimization, Wiley.
  • asked a question related to Matrix Analysis
Question
3 answers
All such algorithms are implemented in MATLAB and pseudorandom numbers are used in the algorithms.
Relevant answer
Answer
Any algorithms that rely on pseudo-random number generators can, in principle, be forced to output the same results in every run. The only thing that's needed is to set the seed value of the generator to the same value before running the algorithm. That's also stated in MATLAB help (http://se.mathworks.com/help/matlab/ref/rand.html): "The sequence of numbers produced by rand is determined by the internal settings of the uniform pseudorandom number generator that underlies rand, randi, and randn. You can control that shared random number generator using rng." See http://se.mathworks.com/help/matlab/ref/rng.html for help on the rng function.
  • asked a question related to Matrix Analysis
Question
7 answers
I need to handle such a problem. Consider the following equation: 
                                        P-1(A+E)P=B
with A and B given and E optional.
How to find an optimal E to minimize both norm(E) and cond(P)? Or at least minimize norm(E)?
Or can you indicate any reference book on matrix optimization where I might find an answer by myself?
Relevant answer
Answer
Genetic algorithm maybe? It would consume time but eventually, put you in the right place...
  • asked a question related to Matrix Analysis
Question
3 answers
I am trying to detect some images or markers using my webcam, which is continuously recording video from environment. Now I further trying to augment virtual objects over some portions of the scene.
  • asked a question related to Matrix Analysis
Question
4 answers
I would like to compute poincare section and lyapunov exponent for my mathematical dynamic model. I am using MATLAB for the analysis, it would be very helpful for me if anyone provide any code, book or any other references which is useful for this. Please help, thanks in advance.
Relevant answer
Answer
Please refer to "MATLAB Programming for Engineers" by Lynch. You can also take a look at this toolbox:
  • asked a question related to Matrix Analysis
Question
2 answers
I want to generate and simulate a simple ic engine with cylinder, connecting rod, crank, piston with proper dimensions. Can anyone help?
Relevant answer
Answer
you can import your 3D geometry model with designed dimensions  to simulink/SimMechanics.
  • asked a question related to Matrix Analysis
Question
28 answers
I would like to work on facial expression recognition, and I am new to image processing also. So please help me in finding good books on MATLAB on image Processing/ facial expression in programming way.
Relevant answer
Answer
I would recommend buying two books: one that is simple such that you aren't lost from the start because the text assumes you are very experienced with MATLAB and/or image processing, and another which is almost at that level to use as a reference guide. For the simple book, you might wish to check out
Marques, O. (2011). Practical image and video processing using MATLAB. Wiley.
For a more comprehensive source to use as reference material, I would suggest
Solomon, C., & Breckon, T. (2011). Fundamentals of Digital Image Processing: A practical approach with examples in Matlab. Wiley.
or
Gonzalez, R. C., Woods, R. E., & Eddins, S. L. (2009). Digital image processing using MATLAB (2nd Ed.). Gatesmark Publishing.
  • asked a question related to Matrix Analysis
Question
6 answers
I am using  the following but it is not good.  here the webcam is going on/off times and video is not in continuous form.
I am willing to capture frame by frame video from environment in real time, which will be further used for object detection in real time.
obj = videoinput('winvideo',1); 
for i=1:5
frame = getsnapshot(obj);
frame1 = im2bw(ycbcr2rgb(frame));
end
Relevant answer
Answer
Dear Kirti Bihade ,
it is Still not clear.........
  • asked a question related to Matrix Analysis
Question
10 answers
I need a MATLAB code which be able assemble na actuators and ns sensors distributed in the plate. Can anyone help me in that.
Relevant answer
Answer
You can get the similar or apropriate answer by searching the keyword in the GOOGLE SCHOLAR page. Usually you will get the first paper similar to your keyword.
From my experience, this way will help you a lot. If you still have a problem, do not hasitate to let me know.
Kind regards, Dr ZOL BAHRI - Universiti Malaysia Perlis, MALAYSIA
BNT-BKT-BT. Available from: https://www.researchgate.net/post/BNT-BKT-BT#view=54f68badd3df3ee77c8b4638 [accessed May 7, 2015].
  • asked a question related to Matrix Analysis
Question
4 answers
Right now I'm trying to fit the Igor's multi peak method and trying to program it. The final goal is to automate the analysis (best fitting one).
Relevant answer
Answer
try fitting a mixture distribution
  • asked a question related to Matrix Analysis
Question
3 answers
I am doing some ROC analysis in Matlab. The function perfcurve is excellent. However, it assumes that larger values of the score indicate stronger evidence for a positive state. This is often exactly what you want if you are analysing the output of a classifier model.
In my case, I want to use raw data where smaller values indicate stronger evidence for a positive state. Reading through the documentation, I could not find a way to change the test direction for the perfcurve function.
Does anyone know if it is possible to do this? Or other similar functions that allow doing this?
Relevant answer
Answer
Francesco - Yes, using Y=-X+max(X) [or even just Y=-X] does the trick. But I was wondering if perfcurve is able to do this by itself, without the need to manipulate the inputs, or the outputs.
Peng - If I change the value of posclass I can get the correct value for AUC, but the values for the ROC plot are (somewhat) swapped around. Of course, this can be fixed manually, but again I don't find it ideal.
  • asked a question related to Matrix Analysis
Question
5 answers
In order to make a comparison between the temporal variabilities of the different satellite products (SMOS, AMSR-E, ASCAT) and in-situ measurements, we need to make the following treatments:  Scaling and Aggregation of SMOS, ASCAT AMSR-E and in-situ soil moisture data. So, I a m looking for some MATLAb codes to do these treatments. Thank you in advance
Relevant answer
Answer
@Abeyou: I suggest you to use the re-gridded data from CATDS: http://catds.ifremer.fr/Products/Available-products-from-CPDC
After login you can download all the SMOS data.
  • asked a question related to Matrix Analysis
Question
7 answers
By using SIFT descriptor, it returns some key point with related descriptor (for instance 100). How can I select 10 strongest key point among them? Should I use hessian matrix? Is there any MATLAB code to do it?
Relevant answer
Answer
1.Read an image
2. Extract the sift descriptor and store it in some variable name such as siftpoints and then add this code
figure;
imshow(Image);
title('100 Strongest Feature Points from Image');
hold on;
plot(selectStrongest(scenePoints, 100));
selectStrongest is an inbuilt function in matlab 2014b
  • asked a question related to Matrix Analysis
Question
5 answers
I am planned to use nonlinear pid controller instead of linear, could anyone help me in this regard.
Relevant answer
Answer
What type of nonlinearity you wont to introduce to PID?
Some nonliearities are already included in PID block of the Simulink, like output saturation and anti-windup. 
If it is some variable gain than common blocks can be used, e.g. for Kp_var*error you could use multiplication block where one input would be error and other Kp_var. Kp_var than would be output of some other block that specifies how that gain will vary and which signals will it depend on. It can be output from some Fuzzy network and as result you would have Fuzzy-PID, or from Neural Network resultin in NN-PID, ore from scheduler with result in gain-scheduled-PID. 
Same way can be done with other terms, where instead of error at multiplier input would go derivative of error (error -> d/dt block ->) or integral of error (error -> 1/s block ->). 
  • asked a question related to Matrix Analysis
Question
4 answers
Need to know how I can convert a linear pid in MATLAB to nonlinear pid or whether any other method is available.
Relevant answer
Answer
Hi,
In 2013, 2014 version of mathlab, there is an option 'tune' in PID block . you can tune the PID with this option.
  • asked a question related to Matrix Analysis
Question
3 answers
Is anyone know how to paralleled the multi for loop in MATLAB.
Here what i wanted to do
[xg,yg,zg] = meshgrid(something);
for i=1:length(xg,1)
for j=1:length(xg,2)
for k=1:length(xg,3)
for m=1:100
some code 
end
end
end
end
How it can be parallel in MATLAB. Meshgrid dimension size are big so it takes too much time to do in serial.   
Relevant answer
Answer
I think, your loops must be independent to paralleled.
If so, you can use this code with a cluster:
[xg,yg,zg] = meshgrid(something);
sched = parcluster();
job=createJob(sched);
job.AttachedFiles={'your_function1','your_function2','your_function3', 'your_function4');
%Each function for each loop with some code
createTask(job, @your_function1, nb_output,{xg,your_more_parameter});
createTask(job, @your_function2, nb_output,{yg,your_more_parameter});
createTask(job, @your_function3, nb_output,{zg,your_more_parameter});
createTask(job, @your_function4, nb_output,{100,your_more_parameter});
submit(job);
wait(job);
results = fetchOutputs(job);
%Use cell2mat(results) to retrieve data
  • asked a question related to Matrix Analysis
Question
2 answers
For fault analysis in lines
Relevant answer
Answer
Hi
As i understand your problem, you require to analyze transient in current signal. The transient energy is quantified for analysis. If you are doing this for power signal then decompose signal in wavelet domain and extract fundamental frequency. Reconstruct the current signal after removing extracted signal. The energy of reconstituted current signal is transient energy. For testing the accuracy of this method, vary the types of wavelet and sampling frequency.
  • asked a question related to Matrix Analysis
Question
3 answers
In MATLAB environment.
Relevant answer
Answer
in the mask of the DFIG you can but all the initial value, in the last line of the second tab.
For the other components, you can do it automatically from the PoweGUI block by chosing the initial state to steady state.
You can also force them individually component by component
LA
  • asked a question related to Matrix Analysis
Question
10 answers
How can I identify that the data which I export from a simulator is an array or matrix of which size and dimension in MATLAB? By finding this, I would like to fit that image by using some polarization parameters.
Relevant answer
Answer
use size() function .
  • asked a question related to Matrix Analysis
Question
1 answer
Thanks in advance for your replies.
Relevant answer
Answer
I think that you can contact with the corresponding author or first author by email. Maybe, they will give you some good suggestions.
  • asked a question related to Matrix Analysis
Question
13 answers
I would like to generate CSCG in MATLAB with zero mean and certain variance. I would be pleased to know all the possible ways of generating CSCG noise.
Thanks
Relevant answer
Answer
I agree with answers above, but if "var" should be the true variance then you write it as
sqrt(var/2)*(randn(1,N)+1i*randn(1,N))
so that the real and imaginary parts each contribute to one half of the variance.
  • asked a question related to Matrix Analysis
Question
6 answers
I am seeking some MATLAB based toolbox for deep learning regression.
Relevant answer
Answer
There are many DNN algorithm like ConvNet, RBM, Auto-Encoder. The most popular one is Convolutional Networks from Yann Lecun, that is mainly for image recognition.  There is an implementation called Caffe which has Matlab wrapper. https://github.com/BVLC/caffe
Both regression and classification are supported in this framewokr. 
  • asked a question related to Matrix Analysis
Question
3 answers
data analysis in video sequence. My video sequence frame is yuv format. How to read pixel value using MATLAB tool.
Relevant answer
Answer
%YUV is used to describe file-formats encoded using YCbCr... That said, you can use:
ycbcr2rgb()
%to work with data on RGB (easier to work) or let databloc be the variable with the frame. Then:
y = databloc(:,:, 1);
cb = databloc(:,:, 2);
cr = databloc(:,:, 3);
%You can display the y, cb, cr component as gray scale image
figure,imshow(y);
figure,imshow(cb);
figure,imshow(cr);
% and deal with them(y, cb, cr) as arrays.
  • asked a question related to Matrix Analysis
Question
9 answers
How can I display characteristics of a controlled system such as settling time and overshoot in MATLAB/Simulink?
Relevant answer
Answer
For example, you can add "To workspace" block in simulink, calculate desired values and draw characteristics after simulation. You can do it in one m-file including executing the simulation.
  • asked a question related to Matrix Analysis
Question
6 answers
I'm trying to do a test on the difference between 2 signals and to get the p-value, using MATLAB.
ttest2 is not a suitable choice..
Could you please suggest some code?
Relevant answer
Answer
Thank you all :)
  • asked a question related to Matrix Analysis
Question
2 answers
I'd appreciate if anyone could share the MATLAB code of LS-SVM in both one-against-all and all-against-all mechanism.
Thank you in advance.
Relevant answer
  • asked a question related to Matrix Analysis
Question
2 answers
I have a model of envelope patch which I would like to stretch in biaxial directions and want to study wrinkling amplitude and wavelength. I would like to write code in MATLAB. If anyone has developed such code please help me out.
Relevant answer
Answer
Thanx Hayder 
Regds 
Vaibhav Pawar
  • asked a question related to Matrix Analysis
Question
8 answers
I would like to solve the following LMI optimization problem in matrices Y and L with MATLAB. What MATLAB function should be used for solving the LMI problem? I don't know how I can define system of LMIs? I was wondering if anyone could help me with it. Thank you in advance.
Relevant answer
Answer
This is a Semi-Definite Program (SDP). By definition it is a convex problem. To this date, the best Matlab package to setup this class of optimization problems is YALMIP. YALMIP provides an interface for most of the well-known SDP solvers such as SeDuMi, SDPT3 and SDPA. For a quick guide on how to set-up SDPs in YALMIP take a look at:
and
Here is a link to download SeDuMi:
Alternatively, you can use the LMILab package. It is a built-in Matlab package which uses an obsolete SDP solver, but still good enough to solve your problem if the size of the matrix variables Y and L is not too large.
  • asked a question related to Matrix Analysis
Question
7 answers
Does anyone know if there is a function (in any language or package) for simulating of random sequence with given correlation function? I didn't see such a thing either in MATLAB or in R. maybe anywhere else?
Relevant answer
Answer
Hi Maria
WAFO is worth looking at as it contains many manyears collected research effort across several countries.
Enjoy
Claes
  • asked a question related to Matrix Analysis
Question
4 answers
I need this for cotton harvesting robot.
Relevant answer
  • asked a question related to Matrix Analysis
Question
6 answers
For a 2nd order linear and non linear differential equation trigonal matrix is generated. In my case upper diagonals are 1 and lower diagonals are 1 and the main diagonal 5. What is the code to solve this type of problem for matrix of 161 x 161?
Relevant answer
Answer
For create  a tridiagonal matrix:
v1 = ones(160,3);
v1(:,2) = v1(:,2)*5;
Diag_MAT = diag(v1(1:end-1,1),-1)+diag(v1(:,2))+diag(v1(1:end-1,3),1);
  • asked a question related to Matrix Analysis
Question
2 answers
I am trying to carry out classification using artificial neural network in R software using Landsat images. I have read lots of articles but most use MATLAB. Can anyone point me to the right direction that can show me how I can do this?
Relevant answer
Answer
In GNU/R, some of the packages that can be used for ANN are neuralnet, nnet and RSNNS. 
For handling images, maps various libraries and grass is available.
Use the taskviews approach
  • asked a question related to Matrix Analysis
Question
1 answer
I would like to control a flexible link and I need MATLAB codes for dynamic model using finite element method.
Relevant answer
Answer
Hi,
It is always a good idea, at least for Matlab related problems, to start looking for algorithms at matlab central. Just google the needed concept and add maltlab central to the search request. The following links could be possibly interesting for you. At least they will get you started with programming the FEM:
Best,