Community Profile

photo

Fred John


Active since 2014

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


Exclude matrix diagonal in for loop
Hi, Let's say I have a 20x20 matrix for which I wish to run some formulas over a loop. But I wish to exclude the main diagona...

9 years ago | 2 answers | 0

2

answers

Question


Stationary distribution for a 50x50 ??!
Hi. How would one find a stationary distribution for a 50x50 transition matrix using Matlab? Thanks!

9 years ago | 0 answers | 0

0

answers

Question


Call a script via a function?
Hi. Can I call (run) a script in a function? My inputs are elements of a 10x10 matrix. How would I write the output?

9 years ago | 1 answer | 0

1

answer

Question


Loop Matrix elements on a script?
Hi. Let's say I have a function who's inputs are from an array (1 to k) of external data. The output to the function is an kx...

9 years ago | 0 answers | 0

0

answers

Question


Run function for paired data?
Hi, Let's say I have a 10x10 matrix A. I wish to run *each unique* pair of elements from that matrix (e.g. (1,1),(1,2),...,(1...

9 years ago | 2 answers | 0

2

answers

Question


Rank matrix elements in descending order
Hi! I have a matrix from which I want the elements to be moved to a table where the elements are sorted via descending order....

9 years ago | 1 answer | 0

1

answer

Question


Use elements from different Matrices as function input
Hi I previously asked a question which was resolved here: http://uk.mathworks.com/matlabcentral/answers/168532-use-matrix...

9 years ago | 1 answer | 0

1

answer

Question


Use Matrix element as function input
Hi! I have a 10x2 Matrix A, defined as A=R*T. Where R and T are also Matrices. I have: function [S] = myFunction(q,w...

9 years ago | 1 answer | 0

1

answer

Question


Remove space between Matrix elements?
Hi! I have a Matrix which I copied over from Excel, but the problem is it has 2 extra *horizontal* spaces between elements th...

9 years ago | 1 answer | 0

1

answer

Question


Select elements of Matrix?
Hi, I have a 20x20 matrix, P. I wish to define a matrix Q such that the rows of Q are the LAST 18 rows of P (rows 2-20), an...

9 years ago | 3 answers | 0

3

answers

Question


??? Subscripted assignment dimension mismatch.
Getting the error in title, my code was: >> P=zeros(3,3); >> P(3,3)=p Any idea why? I'm guessing I need to assign p to ...

9 years ago | 2 answers | 0

2

answers