Sei sulla pagina 1di 4

ej3(r,v)

{#Undefined function or variable 'V'.

Error in <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('ej3',
'C:\Users\Sala7\Desktop\ej3.m', 16)" style="font-weight:bold">ej3</a> (<a
href="matlab: opentoline('C:\Users\Sala7\Desktop\ej3.m',16,0)">line 16</a>)
I=R\V
}#
ej3(r,v)

I =

2.9321 + 0.8330i
2.7756 + 0.8773i
1.3766 + 0.5486i
0.9335 - 0.4940i
1.4345 + 0.4737i
1.8913 - 0.0381i

ans =

2.9321 + 0.8330i
2.7756 + 0.8773i
1.3766 + 0.5486i
0.9335 - 0.4940i
1.4345 + 0.4737i
1.8913 - 0.0381i

clear
m=[0.25,0.35,,0.45];
m=[0.25,0.35,,0.45];
|
{#Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.
}#
m=[0.25,0.35,0.45];
ej2(m)
{#Undefined function or variable 'ej2'.
}#
ej3(m)
{#Attempted to access r(5); index out of bounds because numel(r)=3.

Error in <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('ej3',
'C:\Users\Sala7\Desktop\ej3.m', 4)" style="font-weight:bold">ej3</a> (<a
href="matlab: opentoline('C:\Users\Sala7\Desktop\ej3.m',4,0)">line 4</a>)
m1=[r(1)+r(2)+r(5)+r(4)+r(3)-5*i];
}#
ej2(m)

n2 =

f2 =

f1 =

n1 =

184.0000 179.2593 175.1724

t=linspace(273.15,573.15);
ej22(2.2152,0.05159,0.02174,-0.02198,15e4,0.082055,t)
clear
clc
c=[c11,c22,c33,c44,c55,c66];
{#Undefined function or variable 'c11'.
}#
symb a
{#Undefined function or variable 'symb'.
}#
sym c11 c22 c33 c44 c55 c66
{#Error using <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('sym')"
style="font-weight:bold">sym</a>
Too many input arguments.
}#
sym c11 c22 c33
{#Error using <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('sym',
'C:\Program Files\MATLAB\MATLAB Production
Server\R2015a\toolbox\symbolic\symbolic\@sym\sym.m', 174)" style="font-
weight:bold">sym</a> (<a href="matlab: opentoline('C:\Program Files\MATLAB\MATLAB
Production Server\R2015a\toolbox\symbolic\symbolic\@sym\sym.m',174,0)">line
174</a>)
In the syntax with three arguments, the second argument must be an integer or a
vector of two integers specifying
the dimensions.
}#
sym c11

ans =

c11

sym c11 c22

{#Error using <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('sym/assume',
'C:\Program Files\MATLAB\MATLAB Production
Server\R2015a\toolbox\symbolic\symbolic\@sym\sym.m', 481)" style="font-
weight:bold">sym/assume</a> (<a href="matlab: opentoline('C:\Program
Files\MATLAB\MATLAB Production
Server\R2015a\toolbox\symbolic\symbolic\@sym\sym.m',481,0)">line 481</a>)
Expected input to match one of these strings:

'integer', 'rational', 'real', 'positive', 'clear', 'unreal'

The input, 'c22', did not match any of the valid strings.
Error in <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('sym',
'C:\Program Files\MATLAB\MATLAB Production
Server\R2015a\toolbox\symbolic\symbolic\@sym\sym.m', 159)" style="font-
weight:bold">sym</a> (<a href="matlab: opentoline('C:\Program Files\MATLAB\MATLAB
Production Server\R2015a\toolbox\symbolic\symbolic\@sym\sym.m',159,0)">line
159</a>)
assume(S, n);
}#
sym cc22

ans =

cc22

clear
clc
sym c

ans =

clear
sym c11 c22 c33
{#Error using <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('sym',
'C:\Program Files\MATLAB\MATLAB Production
Server\R2015a\toolbox\symbolic\symbolic\@sym\sym.m', 174)" style="font-
weight:bold">sym</a> (<a href="matlab: opentoline('C:\Program Files\MATLAB\MATLAB
Production Server\R2015a\toolbox\symbolic\symbolic\@sym\sym.m',174,0)">line
174</a>)
In the syntax with three arguments, the second argument must be an integer or a
vector of two integers specifying
the dimensions.
}#
clear
clc
c=[20,21.7,30,6.56,5.85,4.7];
ca=diag(c)

ca =

20.0000 0 0 0 0 0
0 21.7000 0 0 0 0
0 0 30.0000 0 0 0
0 0 0 6.5600 0 0
0 0 0 0 5.8500 0
0 0 0 0 0 4.7000

ca(1,3)=11.5

ca =

20.0000 0 11.5000 0 0 0
0 21.7000 0 0 0 0
0 0 30.0000 0 0 0
0 0 0 6.5600 0 0
0 0 0 0 5.8500 0
0 0 0 0 0 4.7000

ca(1,2)=10.9;
ca(2,1)=10.9;
ca(3,1)=11.5;
ca(2,3)=11.5;
ca(3,2)=11.5

ca =

20.0000 10.9000 11.5000 0 0 0

10.9000 21.7000 11.5000 0 0 0
11.5000 11.5000 30.0000 0 0 0
0 0 0 6.5600 0 0
0 0 0 0 5.8500 0
0 0 0 0 0 4.7000

c=ca;
c(22)

ans =

6.5600

c(14)

ans =

11.5000

c(65)
{#Index exceeds matrix dimensions.
}#