w=(0.984^(1.5)-371^(1/7))/(2.65^1.6)
w =
-0.28436
u=ln((1.23^(1/3))+(0.78^(1/4))+2)
??? Undefined function or variable 'ln'.
u=log((1.23^(1/3))+(0.78^(1/4))+2)
u =
1.3891
t=cos(4*pi/6)+sin(360*pi/51)+atan(0.5)^3
t =
-0.58408
t=cos(4*pi/6)+sin(51*pi/180)+atan(0.5)^3
t =
0.37682
clc
clear
A=[2 3;3 4]
A =
2 3
3 4
x=[1 3 5]
x =
1 3 5
y=[1;3;5]
y =
1
3
5
clear
A=[3 -1;5 0]
A =
3 -1
5 0
B=[2 58]
B =
2 58
C=[7;6]
C =
7
6
D=[B;C A]
??? Error using ==> vertcat
All rows in the bracketed expression must have the same
number of columns.
D=[B;C A]
??? Error using ==> vertcat
All rows in the bracketed expression must have the same
number of columns.
B=[2 5 8]
B =
2 5 8
D=[B;C A]
D =
2 5 8
7 3 -1
6 5 0
x=[1:1:10]
x =
1 2 3 4 5 6 7 8 9 10
y=1:10
y =
1 2 3 4 5 6 7 8 9 10
z=8:-1:1
z =
8 7 6 5 4 3 2 1
y=-1:0.2:1
y =
Columns 1 through 6
-1 -0.8 -0.6 -0.4 -0.2 0
Columns 7 through 11
0.2 0.4 0.6 0.8 1
A=[2:2:12;1 2 3 3 2 1]
A =
2 4 6 8 10 12
1 2 3 3 2 1
A=[2:2:12;1:3 1:-1:1]
??? Error using ==> vertcat
All rows in the bracketed expression must have the same
number of columns.
A=[2:2:12;1:3 3:-1:1]
A =
2 4 6 8 10 12
1 2 3 3 2 1
cleaar
??? Undefined function or variable 'cleaar'.
clear
C=[2 0 1 4 7;3 9 8 5 6;1 5 0 4 3]
C =
2 0 1 4 7
3 9 8 5 6
1 5 0 4 3
z=C(
??? z=C(
|
Error: Expected a variable, function, or constant, found "end of line".
z=C(1,2)
z =
0
C(2,3)=7
C =
2 0 1 4 7
3 9 7 5 6
1 5 0 4 3
x=[2 5 7 9 0]
x =
2 5 7 9 0
x(5)
ans =
0
C(5)
ans =
9
C(2,:)
ans =
3 9 7 5 6
f=C(:,3)
f =
1
7
0
C(:,5)=[1;1;1]
C =
2 0 1 4 1
3 9 7 5 1
1 5 0 4 1
g=C(2,2:4)
g =
9 7 5
h=C(2,[2 4])
h =
9 5
z=zeros(4)
z =
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
z=zeros(4,2)
z =
0 0
0 0
0 0
0 0
u=ones(2,3)
u =
1 1 1
1 1 1
t=eye(4)
t =
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
rand(5)
ans =
0.95013 0.7621 0.61543 0.40571 0.057891
0.23114 0.45647 0.79194 0.93547 0.35287
0.60684 0.018504 0.92181 0.9169 0.81317
0.48598 0.82141 0.73821 0.41027 0.0098613
0.8913 0.4447 0.17627 0.89365 0.13889
D=rand(3)
D =
0.20277 0.27219 0.74679
0.19872 0.19881 0.4451
0.60379 0.015274 0.93181
D=rand(3,5)
D =
0.46599 0.52515 0.83812 0.37948 0.70947
0.41865 0.20265 0.01964 0.8318 0.42889
0.84622 0.67214 0.68128 0.50281 0.30462
D'
ans =
0.46599 0.41865 0.84622
0.52515 0.20265 0.67214
0.83812 0.01964 0.68128
0.37948 0.8318 0.50281
0.70947 0.42889 0.30462
inv(t)
ans =
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
size(D)
ans =
3 5
[n m]=size
??? Error using ==> size
Not enough input arguments.
[n m]=size(D)
n =
3
m =
5
n=size(D,1)
n =
3
m=size(D,2)
m =
5
D=[1 3 6;2 5 8]
D =
1 3 6
2 5 8
max(D)
ans =
2 5 8
max(max(D))
ans =
8
r=sum(D)
r =
3 8 14
prod(D)
ans =
2 15 48
mean(D)
ans =
1.5 4 7
diary off
Wyszukiwarka
Podobne podstrony:
Zajęcia 1Zajecia6Prezentacja na zajęcia dostęp do informacji publicznej 9 10 2015 (1)zajecia nr 9efekty kształcenia terapia zajęciowaZajęcia 6 (FCZ KT)Zajecia XIIzadania na zajęciaPrezentacja na zajęcia zawody prawnicze 16 10 2015Zajęcianr 1 EKS1A400034 BIOPALIWA Cwiczenie 1 2Zajecia 5 Analizy statystyczne?nych jakosciowychzajecia3Podstawy baz danych zajecia 2 z SQL Tabela BibliotekaZajęcia 4więcej podobnych podstron