Question


array to matrix
Hi all, I have an array like a: a=[10 20 30 40]; I want to convert it to the matrix below, without using any for loo...

12 years ago | 2 answers | 0

2

answers

Answered
Vectorization
You can write more general code using following code: N=reshape(M,size(M,1)*a,size(M,2)/a);

12 years ago | 0

Question


convert a logical matrix to the numeric one
Hi all; How can I convert a "logical matrix' to the numeric one. For example B matrix is below . I want to convert it to the B...

12 years ago | 1 answer | 0

1

answer

Question


removing inner for loop
Hi all; I have a matrix named "a" which must be multiplied by 4 different numbers for each index of "i". I want to do this w...

12 years ago | 2 answers | 0

2

answers

Question


the performance of shortcuts
Hi all; I want to know more detail about shortcuts which are available on menu bar as well as Editor bar of MATLAB. For ex...

12 years ago | 1 answer | 0

1

answer

Question


debugging a program
Hi all; I've written a program including two loops and I want to debug it using "keyboard " command. for n=1:1000 f...

12 years ago | 3 answers | 0

3

answers

Question


integer variable
Hi all, how can I define an integer variable at the begining of program? thank you in advance;

12 years ago | 3 answers | 0

3

answers

Question


multiplication of equevalant element of three cells by a predetermined vector
Hi all; I've written a program including some cells like below: clc; clear; ...

12 years ago | 1 answer | 0

1

answer

Answered
how to read the ms excel numeric data?
You can use following command: xlsread('aaa.xls', 't1','A1:FW10') aaa= name of excel file; t1= name of sheets havi...

12 years ago | 0

Answered
removing three loops which are predeterminded
Dear Jan Simon, since writing of above program by keeping just one loop i.e. " t loop" is so essential for me and on the othe...

12 years ago | 0

Question


removing three loops which are predeterminded
Hi all I've writen a program including four loops and they all located inside a "while" loop as below: q=[0,10,20; 40,...

12 years ago | 2 answers | 0

2

answers

Question


convert a program to the parallel form
Hi, I want to get some information about how can I convert my program to the parallel form in order to decrease computational ...

12 years ago | 1 answer | 0

1

answer

Question


time series modeling with one- lag
Hi all I have a time series of a random variable ' a ' which varies both in month and year. Historical data of this variab...

13 years ago | 0 answers | 0

0

answers

Question


transforming cells to some matrics in loops
Hi all I've written a program like below. it has a cellular variable named " tsd_total {n,ss} (ii,rr) ". as you see thi...

13 years ago | 0 answers | 0

0

answers

Question


a matrix of strings
Hi all I want to make a 3-by-3 matrix with the elements of strings. for example: a=[ok ok ok; no no no ;ok ok ok ]; ...

13 years ago | 1 answer | 0

1

answer

Question


alarm for finishing running of a program
Hi all I've written a program and it's so time-consuming. I want to write a command for the programe that alarm me the pr...

13 years ago | 4 answers | 0

4

answers

Question


decreasing the number of for-loops
I've written a program having some loops. I aim to decrease the number of loops as well as the run-time of program. How can I d...

13 years ago | 1 answer | 0

1

answer

Question


plotting 20 graphs on singe screen with different colors
Hi all I've written a program having twenty outputs . these outputs are obtained from a FOR loop and I want to present th...

13 years ago | 2 answers | 0

2

answers

Question


making outputs in unique sheet
Hi all I've written a program having some outputs. I aim to see all these output in one sheet (I mean one variable editor...

13 years ago | 1 answer | 0

1

answer

Question


definision of variables with similar dimensions
Hi all I want to define some variablees at the beginning of the program which have the same dimensions. for example: the...

13 years ago | 1 answer | 0

1

answer

Question


definision of string variables's dimension
Dear.Roberson Thanks for your tips on decreasing of the program runtime through the definition of variable's dimensions. ...

13 years ago | 1 answer | 0

1

answer

Question


calculation of reminder of a fragment
hi all i want to caculate the reminder of following fragment by a unique command in Matlab. for example: t=7; T=2; How...

13 years ago | 1 answer | 0

1

answer

Question


import some cellls data from a program into another one.
Hi all I've written a program named "a.1" which its output is some cells. Hence this program is too long and time-consum...

13 years ago | 1 answer | 0

1

answer

Question


equality of two matrics having NaN elements
Hi All I have two matrices A and B having some NaN elements. I want to investigate the equality of these matrices. How can I ...

13 years ago | 2 answers | 0

2

answers

Question


transforming a matrix to an array without one values???
Hi all I have a matrix having some values equal to one. I want to transform this matrix to an array without the one values. h...

13 years ago | 1 answer | 0

1

answer

Question


calculation of the transition probability of a Markov's chain
Hi all I have to series of data (i.e. Qt and Qt+1 , in t and t+1 times, respectively). I want to calculate the transition p...

13 years ago | 1 answer | 0

1

answer

Question


a command for changing the place of columns in a matrix directly
Hi all I have a matrix m-by-n and I want to change the place of columns with an espiciall command in matlab. How can I do th...

13 years ago | 2 answers | 0

2

answers

Question


calculation of the linear regression equation
Hi all I have two arrays of data including A , B. I want to calculate the linear regression equation of A , B as well as t...

13 years ago | 1 answer | 0

1

answer

Question


convert a matrix with some zero elments to an array with non-zero elments ?
Hi all I have a matrix 'A' including some elments equal to zero. i want to make an array 'B' with the non-zero elements of A . ...

13 years ago | 2 answers | 1

2

answers

Question


How can I make a differential matrics?
Hi all I have three matrices which obtained from a series of caculations. these matrices are cumulative i.e. values of mat...

13 years ago | 1 answer | 0

1

answer

Load more