Sie sind auf Seite 1von 7

3^2-5*(2-3/4)

ans =

2.7500

3^2-5*2-3/4

ans =

-1.7500

Total
{#??? Undefined function or variable 'Total'.
}#
clc
x=3;
y = 8x;
??? y = 8x;
|
{#Error: Unexpected MATLAB expression.
}#
clc
x=3;
y=8x;
??? y=8x;
|
{#Error: Unexpected MATLAB expression.
}#
clc
x^3+yz
{#??? Undefined function or variable 'yz'.
}#
clc
x=3;
y=8x;
??? y=8x;
|
{#Error: Unexpected MATLAB expression.
}#
clc
x=3;
y=8x
??? y=8x
|
{#Error: Unexpected MATLAB expression.
}#
clc
x=3;
y=8x:
??? y=8x:
|
{#Error: Unexpected MATLAB expression.
}#
clc
x=3;
y=8x;
??? y=8x;
|
{#Error: Unexpected MATLAB expression.
}#
z=5+y;
{#??? Undefined function or variable 'y'.
}#
x^3+yz
{#??? Undefined function or variable 'yz'.
}#
clc y
{#??? Error using ==> clc
Too many input arguments.
}#
clcy
{#??? Undefined function or variable 'clcy'.
}#
clc
help zeros
ZEROS Zeros array.
ZEROS(N) is an N-by-N matrix of zeros.

ZEROS(M,N) or ZEROS([M,N]) is an M-by-N matrix of zeros.

ZEROS(M,N,P,...) or ZEROS([M N P ...]) is an M-by-N-by-P-by-... array of


zeros.

ZEROS(SIZE(A)) is the same size as A and all zeros.

ZEROS with no arguments is the scalar 0.

ZEROS(M,N,...,CLASSNAME) or ZEROS([M,N,...],CLASSNAME) is an
M-by-N-by-... array of zeros of class CLASSNAME.

Note: The size inputs M, N, and P... should be nonnegative integers.


Negative integers are treated as 0.

Example:
x = zeros(2,3,'int8');

See also <a href="matlab:help eye">eye</a>, <a href="matlab:help


ones">ones</a>.

Overloaded methods:
<a href="matlab:help distributed/zeros">distributed/zeros</a>
<a href="matlab:help codistributor2dbc/zeros">codistributor2dbc/zeros</a>
<a href="matlab:help codistributor1d/zeros">codistributor1d/zeros</a>
<a href="matlab:help codistributed/zeros">codistributed/zeros</a>

Reference page in Help browser


<a href="matlab:doc zeros">doc zeros</a>

clc
clc
x=3;
y=8*x;
z=5+y;
x^3+yz
{#??? Undefined function or variable 'yz'.
}#
clc
x=3;
y=8*x;
z=5+y;
x^3+y*z<
??? x^3+y*z<
|
{#Error: Expression or statement is incomplete or incorrect.
}#
clc
x^3+y*z;
clc
x=3;
y=8*x;
z=5+y;
x^3+y*z;
x^3+x*z

ans =

114

clc
x=3;
y=8*x;
z=5+y;
x^3+yz
{#??? Undefined function or variable 'yz'.
}#
clc
x=3;
y=8*x;
z=5+y;
x^3+y*z

ans =

723

a=3;
b=1-a;
c=8^a;
c-[(a+1)b]
??? c-[(a+1)b]
|
{#Error: Unexpected MATLAB expression.
}#
c-[(a+1)b]
??? c-[(a+1)b]
|
{#Error: Unexpected MATLAB expression.
}#
c-[(a+1)*b]

ans =

520

cl
{#??? Undefined function or variable 'cl'.
}#
clc
clc b
{#??? Error using ==> clc
Too many input arguments.
}#
clcb
{#??? Undefined function or variable 'clcb'.
}#
bclc
{#??? Undefined function or variable 'bclc'.
}#
clc
a=3;
b=1-a;
c=8^a;
c-[(a+1)/b]

ans =

514

base=3;
altura=8;
AreaTriangulo=(base*altura)/2

AreaTriangulo =

12

corriente=2.5;
clc
corriente=2,5;

corriente =

Resistencia=88;
Voltaje=corriente*Resistencia

Voltaje =

176

a=2;
b=8;
c=-10;
x=[-b(b^2-4*a*c)^1/2]/2*a
{#??? Index exceeds matrix dimensions.
}#
xclc
{#??? Undefined function or variable 'xclc'.
}#
x=[-b+(b^2-4*a*c)^1/2]/2*a

x =

64
clc
a=2;
b=8;
c=-10;
x=[-b*(b^2-4*a*c)^1/2]/2*a

x =

-576

y=[-b+(b^2-4*a*c)^1/2]/2*a

y =

64

clc
A=(1 2 3;4 5 6;7 8 9)
??? A=(1 2 3;4 5 6;7 8 9)
|
{#Error: Unexpected MATLAB expression.
}#
clc
A=[1 2 3;4 5 6;7 8 9]

A =

1 2 3
4 5 6
7 8 9

B=[10 20 30;40 50 60;70 80 90]

B =

10 20 30
40 50 60
70 80 90

c=[1 0 1]

c =

1 0 1

D=[1;0;1]

D =

1
0
1

E=A*B

E =

300 360 420


660 810 960
1020 1260 1500

F=B*D

F =

40
100
160

G=D*C
{#??? Undefined function or variable 'C'.
}#
G clc
{#??? Undefined function or method 'G' for input arguments of type 'char'.
}#
G0
{#??? Undefined function or variable 'G0'.
}#
G=D*c

G =

1 0 1
0 0 0
1 0 1

H=c*A

H =

8 10 12

lenght(E)
{#??? Undefined function or method 'lenght' for input arguments of type 'double'.
}#
help lenghtE

lenghtE not found.

Use the Help browser Search tab to <a href="matlab:docsearch lenghtE">search the
documentation</a>, or
type "<a href="matlab:help help">help help</a>" for help command options, such as
help for methods.

LenghtE
{#??? Undefined function or variable 'LenghtE'.
}#
E help lemght
{#??? Error: "E" was previously used as a variable,
conflicting with its use here as the name of a function or command.
See <a href="matlab: helpview([docroot
'/techdoc/matlab_prog/matlab_prog.map'],'function_call_command_syntax')">MATLAB
Programming, "How MATLAB Recognizes Function Calls That Use Command Syntax"</a>
for details.
}#

1=lenght(E)
??? 1=lenght(E)
|
{#Error: The expression to the left of the equals sign is not a valid target for an
assignment.
}#
clear lenght
E=A*B;
1=lenght(E)
??? 1=lenght(E)
|
{#Error: The expression to the left of the equals sign is not a valid target for an
assignment.
}#
clc
A=[1 2 3;4 5 6;7 8 9]

A =

1 2 3
4 5 6
7 8 9

B[10 20 30;40 50 60;70 80 90]


??? B[10 20 30;40 50 60;70 80 90]
|
{#Error: Unbalanced or unexpected parenthesis or bracket.
}#
B clear
{#??? Error: "B" was previously used as a variable,
conflicting with its use here as the name of a function or command.
See <a href="matlab: helpview([docroot
'/techdoc/matlab_prog/matlab_prog.map'],'function_call_command_syntax')">MATLAB
Programming, "How MATLAB Recognizes Function Calls That Use Command Syntax"</a> for
details.
}#
clar B
{#??? Undefined function or method 'clar' for input arguments of type 'char'.
}#
clc B
{#??? Error using ==> clc
Too many input arguments.
}#
cc
??? cc
|
{#Error: The input character is not valid in MATLAB statements or expressions.
}#
clc
pathtool;