질문


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년 초과 전 | 답변 수: 2 | 0

2

답변

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

12년 초과 전 | 0

질문


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년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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년 초과 전 | 답변 수: 2 | 0

2

답변

질문


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년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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년 초과 전 | 답변 수: 3 | 0

3

답변

질문


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

12년 초과 전 | 답변 수: 3 | 0

3

답변

질문


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년 초과 전 | 답변 수: 1 | 0

1

답변

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

질문


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년 초과 전 | 답변 수: 2 | 0

2

답변

질문


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년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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년 전 | 답변 수: 0 | 0

0

답변

질문


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년 전 | 답변 수: 0 | 0

0

답변

질문


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년 전 | 답변 수: 1 | 0

1

답변

질문


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년 전 | 답변 수: 4 | 0

4

답변

질문


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년 전 | 답변 수: 1 | 0

1

답변

질문


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년 전 | 답변 수: 2 | 0

2

답변

질문


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년 전 | 답변 수: 1 | 0

1

답변

질문


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년 전 | 답변 수: 1 | 0

1

답변

질문


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년 전 | 답변 수: 1 | 0

1

답변

질문


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년 전 | 답변 수: 1 | 0

1

답변

질문


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년 전 | 답변 수: 1 | 0

1

답변

질문


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년 전 | 답변 수: 2 | 0

2

답변

질문


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년 전 | 답변 수: 1 | 0

1

답변

질문


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년 전 | 답변 수: 1 | 0

1

답변

질문


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년 전 | 답변 수: 2 | 0

2

답변

질문


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년 전 | 답변 수: 1 | 0

1

답변

질문


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년 전 | 답변 수: 2 | 1

2

답변

질문


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년 전 | 답변 수: 1 | 0

1

답변

더 보기