Domanda


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

oltre 12 anni fa | 2 risposte | 0

2

risposte

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

oltre 12 anni fa | 0

Domanda


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

oltre 12 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 12 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 12 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 12 anni fa | 3 risposte | 0

3

risposte

Domanda


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

oltre 12 anni fa | 3 risposte | 0

3

risposte

Domanda


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

oltre 12 anni fa | 1 risposta | 0

1

risposta

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

oltre 12 anni fa | 0

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

oltre 12 anni fa | 0

Domanda


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

oltre 12 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 12 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 13 anni fa | 0 risposte | 0

0

risposte

Domanda


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

quasi 13 anni fa | 0 risposte | 0

0

risposte

Domanda


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

quasi 13 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 13 anni fa | 4 risposte | 0

4

risposte

Domanda


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

quasi 13 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 13 anni fa | 2 risposte | 0

2

risposte

Domanda


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

quasi 13 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 13 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 13 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 13 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 13 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 13 anni fa | 2 risposte | 0

2

risposte

Domanda


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

quasi 13 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 13 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 13 anni fa | 2 risposte | 0

2

risposte

Domanda


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

quasi 13 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 13 anni fa | 2 risposte | 1

2

risposte

Domanda


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

quasi 13 anni fa | 1 risposta | 0

1

risposta

Carica altro