Pievienot darbus Atzīmētie0
Darbs ir veiksmīgi atzīmēts!

Atzīmētie darbi

Skatītie0

Skatītie darbi

Grozs0
Darbs ir sekmīgi pievienots grozam!

Grozs

Reģistrēties

interneta bibliotēka
Atlants.lv bibliotēka
Akcijas un īpašie piedāvājumi 2 Atvērt
14,20 € Ielikt grozā
Gribi lētāk?
Identifikators:422107
 
Vērtējums:
Publicēts: 20.03.2007.
Valoda: Latviešu
Līmenis: Augstskolas
Literatūras saraksts: Nav
Atsauces: Nav
Darba fragmentsAizvērt

Whos
Name Size Bytes Class

a 1x1 8 double array
ans 1x1 8 double array
b 1x1 8 double array
c 1x1 8 double array
x 1x5 40 double array
y 3x1 24 double array
z 3x3 72 double array

Grand total is 21 elements using 168 bytes

>> help whos
WHOS List current variables, long form. WHOS is a long form of WHO. It lists all the variables in the current workspace, together with information about their size, bytes, class, etc.

WHOS GLOBAL lists the variables in the global workspace.
WHOS -FILE FILENAME lists the variables in the specified .MAT file.
WHOS ... VAR1 VAR2 restricts the display to the variables specified.

The wildcard character '*' can be used to display variables that
match a pattern. For instance, WHOS A* finds all variables in the
current workspace that start with A.

Use the functional form of WHOS, such as WHOS('-file',FILE,V1,V2),
when the filename or variable names are stored in strings.

S = WHOS(...) returns a structure with the fields:
name -- variable name
bytes -- number of bytes allocated for the array
class -- class of variable
You must use the functional form of WHOS when there is an output
argument.
>>help min
MIN Smallest component. For vectors, MIN(X) is the smallest element in X. For matrices, MIN(X) is a row vector containing the minimum element from each column. For N-D arrays, MIN(X) operates along the first non-singleton dimension. [Y,I] = MIN(X) returns the indices of the minimum values in vector I. If the values along the first non-singleton dimension contain more than one minimal element, the index of the first one is returned. MIN(X,Y) returns an array the same size as X and Y with the smallest elements taken from X or Y. Either one can be a scalar. [Y,I] = MIN(X,[],DIM) operates along the dimension DIM. When complex, the magnitude MIN(ABS(X)) is used, and the angle ANGLE(X) is ignored. NaN's are ignored when computing the minimum.
Example: If X = [2 8 4 then min(X,[],1) is [2 3 4],
7 3 9]
min(X,[],2) is [2 and min(X,5) is [2 5 4
3], 5 3 5].


min(z,1)

ans =

1 1 1
1 1 1
1 1 1

min(z,2)

ans =

1 2 2
2 2 2
2 2 2
mean(z,1)

ans =

4 5 6

>> help mean
MEAN Average or mean value. For vectors, MEAN(X) is the mean value of the elements in X. For matrices, MEAN(X) is a row vector containing the mean value of each column. For N-D arrays, MEAN(X) is the mean value of the elements along the first non-singleton dimension of X.
MEAN(X,DIM) takes the mean along the dimension DIM of X.

Example: If X = [0 1 2
3 4 5]

then mean(X,1) is [1.5 2.5 3.5] and mean(X,2) is [1
4]

mean(z,2)

ans =

2
5
8


v=[a b c]

v =

10 15 20

mean(v)

ans =

15

ans =

106.2500

Autora komentārsAtvērt
Darbu komplekts:
IZDEVĪGI pirkt komplektā ietaupīsi −-1,30 €
Materiālu komplekts Nr. 1151299
Parādīt vairāk līdzīgos ...

Atlants

Izvēlies autorizēšanās veidu

E-pasts + parole

E-pasts + parole

Norādīta nepareiza e-pasta adrese vai parole!
Ienākt

Aizmirsi paroli?

Draugiem.pase
Facebook

Neesi reģistrējies?

Reģistrējies un saņem bez maksas!

Lai saņemtu bezmaksas darbus no Atlants.lv, ir nepieciešams reģistrēties. Tas ir vienkārši un aizņems vien dažas sekundes.

Ja Tu jau esi reģistrējies, vari vienkārši un varēsi saņemt bezmaksas darbus.

Atcelt Reģistrēties