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...

plus de 12 ans il y a | 2 réponses | 0

2

réponses

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

plus de 12 ans il y a | 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...

plus de 12 ans il y a | 1 réponse | 0

1

réponse

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...

plus de 12 ans il y a | 2 réponses | 0

2

réponses

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...

plus de 12 ans il y a | 1 réponse | 0

1

réponse

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...

plus de 12 ans il y a | 3 réponses | 0

3

réponses

Question


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

plus de 12 ans il y a | 3 réponses | 0

3

réponses

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; ...

plus de 12 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
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...

plus de 12 ans il y a | 0

Réponse apportée
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...

plus de 12 ans il y a | 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,...

plus de 12 ans il y a | 2 réponses | 0

2

réponses

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 ...

plus de 12 ans il y a | 1 réponse | 0

1

réponse

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...

presque 13 ans il y a | 1 réponse | 0

0

réponse

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...

presque 13 ans il y a | 1 réponse | 0

0

réponse

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 ]; ...

presque 13 ans il y a | 1 réponse | 0

1

réponse

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...

presque 13 ans il y a | 4 réponses | 0

4

réponses

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...

presque 13 ans il y a | 1 réponse | 0

1

réponse

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...

presque 13 ans il y a | 2 réponses | 0

2

réponses

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...

presque 13 ans il y a | 1 réponse | 0

1

réponse

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...

presque 13 ans il y a | 1 réponse | 0

1

réponse

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. ...

presque 13 ans il y a | 1 réponse | 0

1

réponse

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...

presque 13 ans il y a | 1 réponse | 0

1

réponse

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...

presque 13 ans il y a | 1 réponse | 0

1

réponse

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 ...

presque 13 ans il y a | 2 réponses | 0

2

réponses

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...

presque 13 ans il y a | 1 réponse | 0

1

réponse

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...

presque 13 ans il y a | 1 réponse | 0

1

réponse

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...

presque 13 ans il y a | 2 réponses | 0

2

réponses

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...

presque 13 ans il y a | 1 réponse | 0

1

réponse

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 . ...

presque 13 ans il y a | 2 réponses | 1

2

réponses

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...

presque 13 ans il y a | 1 réponse | 0

1

réponse

Charger plus