Sei sulla pagina 1di 18

% PROBLEMAS PROPUESTOS

{#Warning: Function C:\Users\Yuli\Documents\MATLAB\plus.m has the same name as a


MATLAB builtin. We suggest you rename the function to avoid a potential name
conflict.}#
{#Warning: Function C:\Users\Yuli\Documents\MATLAB\plus.m has the same name as a
MATLAB builtin. We suggest you rename the function to avoid a potential name
conflict.}#
clc
{#Warning: Function C:\Users\Yuli\Documents\MATLAB\plus.m has the same name as a
MATLAB
builtin. We suggest you rename the function to avoid a potential name conflict.}#
{#Warning: Function C:\Users\Yuli\Documents\MATLAB\plus.m has the same name as a
MATLAB
builtin. We suggest you rename the function to avoid a potential name conflict.}#
clc
diary('01trabajo.txt')
% PROBLEMAS PROPUESTOS
{#Warning: Function C:\Users\Yuli\Documents\MATLAB\plus.m has the same name as a
MATLAB
builtin. We suggest you rename the function to avoid a potential name conflict.}#
{#Warning: Function C:\Users\Yuli\Documents\MATLAB\plus.m has the same name as a
MATLAB
builtin. We suggest you rename the function to avoid a potential name conflict.}#
% PROBLEMAS PROPUESTOS
diary('01trabajo.txt')
clc
{#Warning: Function C:\Users\Yuli\Documents\MATLAB\plus.m has the same name as a
MATLAB
builtin. We suggest you rename the function to avoid a potential name conflict.}#
{#Warning: Function C:\Users\Yuli\Documents\MATLAB\plus.m has the same name as a
MATLAB
builtin. We suggest you rename the function to avoid a potential name conflict.}#
clc
% PROBLEMAS PROPUESTOS
diary('01trabajo.txt')
a=35.7*64-7^3/45+5*x^2
{#Warning: Function C:\Users\Yuli\Documents\MATLAB\plus.m has the same name as a
MATLAB builtin. We suggest you rename the function to avoid a potential name
conflict.}#
{#Warning: Function C:\Users\Yuli\Documents\MATLAB\plus.m has the same name as a
MATLAB builtin. We suggest you rename the function to avoid a potential name
conflict.}#
{#??? Undefined function or variable 'x'.
}#
x=5

x =

a=35.7*64-7^3/45+5*x^2

a =

2.4022e+003

clc
x=5
x =

a=35.7*64-7^3/45+5*x^2

a =

2.4022e+003

x=2

x =

a=35.7*64-7^3/45+5*x^2

a =

2.2972e+003

x=0

x =

a=35.7*64-7^3/45+5*x^2

a =

2.2772e+003

clc
5/4*7*6^2+ 3^7/(9^3-652)

ans =

343.4026

b=5/4*7*6^2+ 3^7/(9^3-652)

b =

343.4026

CLC
{#??? Undefined function or variable 'CLC'.
}#
clc
a=3^7*log(76)/7^3+546+910^1/3

a =

876.9465

clc
a=(2+7)^3 + (273^2/3)/2+(55^2)/3
a =

1.4159e+004

clc
b=2^3+7^3+(273^3)/2 + 55^2/3

b =

1.0175e+007

clc
b=43*(250^1/4+23)^2/exp^(45-3^3)
{#??? Error using ==> exp
Not enough input arguments.
}#
b=43*(250^1/4+23)^2/e^(45-3^3)
{#??? Undefined function or variable 'e'.
}#
b=43*(250^1/4+23)^2/exp(45-3^3)

b =

0.0048

clc
cos^2(5*pi/6)
??? cos^2(5*pi/6)
|
{#Error: Unbalanced or unexpected parenthesis or bracket.
}#
cos(5*pi/6)^2

ans =

0.7500

(cos(5*pi/6))^2

ans =

0.7500

clc
cos(5*pi/6)^2*sin((7*pi/8)^2)+tan(pi/6*ln(8))/sqrt(7)
{#??? Undefined function or method 'ln' for input arguments of type 'double'.
}#
a=cos(5*pi/6)^2*sin((7*pi/8)^2)+tan(pi/6*log(8))/sqrt(7)

a =

1.4395

clc
b=cos(5*pi/6^2)*sin^2(7*pi/8)+tan(pi/6*log(8))/7*5/2
??? b=cos(5*pi/6^2)*sin^2(7*pi/8)+tan(pi/6*log(8))/7*5/2
|
{#Error: Unbalanced or unexpected parenthesis or bracket.
}#
clc
b=cos((5*pi/6)^2)*sin^2(7*pi/8)+tan(pi/6*log(8))/7*5/2
??? b=cos((5*pi/6)^2)*sin^2(7*pi/8)+tan(pi/6*log(8))/7*5/2
|
{#Error: Unbalanced or unexpected parenthesis or bracket.
}#
a=cos(5*pi/6)^2*sin((7*pi/8)^2)+tan(pi/6*log(8))/sqrt(7)

a =

1.4395

clc
b=cos((5*pi/6)^2)*sin(7*pi/8)^2+tan(pi/6*log(8))/7*5/2

b =

0.8059

clc
x=13.5

x =

13.5000

x^3

ans =

2.4604e+003

clcl
{#??? Undefined function or variable 'clcl'.
}#
clc
x=13.5

x =

13.5000

x^3+5*x^2-26,7*x-52

ans =

3.3456e+003

ans =

42.5000

x=13.5

x =

13.5000
x^3+5*x^2-26,7*x-52

ans =

3.3456e+003

ans =

42.5000

clc
x=13.5

x =

13.5000

sqrt(14*x^3)/exp(3*x)

ans =

4.7823e-016

clc
x=13.5

x =

13.5000

log10abs(x^2 -x^3)
{#??? Undefined function or method 'log10abs' for input arguments of type 'double'.
}#
log10(abs(x^2 -x^3))

ans =

3.3576

clc
x=13.5

x =

13.5000

log10(abs(x^2 -x^3))

ans =

3.3576

clc
x=9.6 ,z=8.1

x =
9.6000

z =

8.1000

a=(x*z)^2-(2*z/3*x)^3/5

a =

-2.1816e+004

b=443*z/2*x^3+exp(-x*z)/(x+z)

b =

1.5873e+006

clc
a=15.62 , b=-7.8 , c=62.5 , d=0.5*(a*b-c)

a =

15.6200

b =

-7.8000

c =

62.5000

d =

-92.1680

x=a+(a*b)/c*(a+d)^2/sgrt(abs(a*b))
{#??? Undefined function or method 'sgrt' for input arguments of type 'double'.
}#
x=a+(a*b)/c*(a+d)^2/sgr(abs(a*b))
{#??? Undefined function or method 'sgr' for input arguments of type 'double'.
}#
x=a+(a*b)/c *(a+d)^2/sgrt(abs(a*b))
{#??? Undefined function or method 'sgrt' for input arguments of type 'double'.
}#
a+(a*b)/c *(a+d)^2/sgrt(abs(a*b))
{#??? Undefined function or method 'sgrt' for input arguments of type 'double'.
}#
sgrt(abs(a*b))
{#??? Undefined function or method 'sgrt' for input arguments of type 'double'.
}#
abs(a*b)=p
{#??? Undefined function or variable 'p'.
}#
abs(a*b)

ans =

121.8360

p=abs(a*b)

p =

121.8360

sqrt(p)

ans =

11.0379

a+(a*b)/c *(a+d)^2/sgrt(p)
{#??? Undefined function or method 'sgrt' for input arguments of type 'double'.
}#
clc
a=15.62 , b=-7.8 , c=62.5 , d=0.5*(a*b-c)

a =

15.6200

b =

-7.8000

c =

62.5000

d =

-92.1680

a+(a*b)/c *((a+d)^2)/sgrt(abs(a*b))
{#??? Undefined function or method 'sgrt' for input arguments of type 'double'.
}#
sgrt(abs(a*b))
{#??? Undefined function or method 'sgrt' for input arguments of type 'double'.
}#
sgrtabs(a*b)
{#??? Undefined function or method 'sgrtabs' for input arguments of type 'double'.
}#
sgrt(abs a*b)
??? sgrt(abs a*b)
|
{#Error: Unexpected MATLAB expression.
}#
a+(a*b)/c *((a+d)^2)/sqrt(abs(a*b))
ans =

-1.0192e+003

clc
a=15.62 , b=-7.8 , c=62.5 , d=0.5*(a*b-c)

a =

15.6200

b =

-7.8000

c =

62.5000

d =

-92.1680

x=a+(a*b)/c*(a+d)^2/sqr(abs(a*b))
{#??? Undefined function or method 'sqr' for input arguments of type 'double'.
}#
x=a+(a*b)/c*(a+d)^2/sqrt(abs(a*b))

x =

-1.0192e+003

clc
a=15.62 , b=-7.8 , c=62.5 , d=0.5*(a*b-c)

a =

15.6200

b =

-7.8000

c =

62.5000

d =

-92.1680

x=a+(a*b)/c*(a+d)^2/sqrt(abs(a*b))
x =

-1.0192e+003

y=d*e^d/2+(a*d+c*d/(20/a+30/b))/(a+b+c+d)
{#Warning: Function C:\Users\Yuli\Documents\MATLAB\plus.m has the same name as a
MATLAB builtin. We suggest you rename the function to avoid a potential name
conflict.}#
{#Warning: Function C:\Users\Yuli\Documents\MATLAB\plus.m has the same name as a
MATLAB builtin. We suggest you rename the function to avoid a potential name
conflict.}#
{#??? Undefined function or variable 'e'.
}#
y=d^d/2+(a*d+c*d/(20/a+30/b))/(a+b+c+d)

y =

-36.8681 - 0.0000i

clc
a=15.62 , b=-7.8 , c=62.5 , d=0.5*(a*b-c) e=a+b
??? a=15.62 , b=-7.8 , c=62.5 , d=0.5*(a*b-c) e=a+b
|
{#Error: Unexpected MATLAB expression.
}#
clc
a=15.62 , b=-7.8 , c=62.5 , d=0.5*(a*b-c)

a =

15.6200

b =

-7.8000

c =

62.5000

d =

-92.1680

e=a+b

e =

7.8200

y=d*e^d/2+(a*d+c*d/(20/a+30/b))/(a+b+c+d)

y =

-36.8681
clc
A=zeros (3,9)

A =

0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0

A(1,:)=1:3:25

A =

1 4 7 10 13 16 19 22 25
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0

A(2,:)=72:-6:24

A =

1 4 7 10 13 16 19 22 25
72 66 60 54 48 42 36 30 24
0 0 0 0 0 0 0 0 0

A(3,:)=0:0.125:1

A =

Columns 1 through 8

1.0000 4.0000 7.0000 10.0000 13.0000 16.0000 19.0000 22.0000


72.0000 66.0000 60.0000 54.0000 48.0000 42.0000 36.0000 30.0000
0 0.1250 0.2500 0.3750 0.5000 0.6250 0.7500 0.8750

Column 9

25.0000
24.0000
1.0000

clc
A=zeros (3,9)

A =

0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0

A(1,:)=1:3:25

A =

1 4 7 10 13 16 19 22 25
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0

A(2,:)=72:-6:24
A =

1 4 7 10 13 16 19 22 25
72 66 60 54 48 42 36 30 24
0 0 0 0 0 0 0 0 0

A(3,:)=0:0.125:1

A =

1.0000 4.0000 7.0000 10.0000 13.0000 16.0000 19.0000 22.0000


25.0000
72.0000 66.0000 60.0000 54.0000 48.0000 42.0000 36.0000 30.0000
24.0000
0 0.1250 0.2500 0.3750 0.5000 0.6250 0.7500 0.8750
1.0000

clc
c=zeros (3,5)

c =

0 0 0 0 0
0 0 0 0 0
0 0 0 0 0

ua=3:3:15

ua =

3 6 9 12 15

ub=
??? ub=
|
{#Error: Expression or statement is incomplete or incorrect.
}#
clc
ua=6:9:21

ua =

6 15

ua=6:3:21

ua =

6 9 12 15 18 21

linspace(6,3,21)

ans =

Columns 1 through 8

6.0000 5.8500 5.7000 5.5500 5.4000 5.2500 5.1000 4.9500


Columns 9 through 16

4.8000 4.6500 4.5000 4.3500 4.2000 4.0500 3.9000 3.7500

Columns 17 through 21

3.6000 3.4500 3.3000 3.1500 3.0000

linspace(6,21,3)

ans =

6.0000 13.5000 21.0000

clc
v1=[6:3:9,21]

v1 =

6 9 21

ub=3:3:15

ub =

3 6 9 12 15

uc=[2;3:4:7;3:3:21;10:5:15;35]
{#??? Error using ==> vertcat
CAT arguments dimensions are not consistent.
}#
uc=[2;3:4:7';3:3:21';10:5:15;35]
{#??? Error using ==> vertcat
CAT arguments dimensions are not consistent.
}#
uc=[2;3:4:7';3:3:21';10:5:15';35]
{#??? Error using ==> vertcat
CAT arguments dimensions are not consistent.
}#
uc=[2;(3:4:7)';(3:3:21)';(10:5:15)';35]

uc =

2
3
7
3
6
9
12
15
18
21
10
15
35

uc=[2;(3:4:7)';(6:3:21)';(10:5:15)';35]
uc =

2
3
7
6
9
12
15
18
21
10
15
35

uc=[2;(3:4:7)';(6:3:9)';21;(10:5:15)';35]

uc =

2
3
7
6
9
21
10
15
35

ud=[(2:2:10)';(3:3:15)']

ud =

2
4
6
8
10
3
6
9
12
15

clc
va=[12:-6:6,34:-34:0,5]

va =

12 6 34 0 5

clc
vb=[11:-11:0,41]

vb =

11 0 41

vb=[11:-11:0,41]
vb =

11 0 41

vb =
??? vb =
|
{#Error: Expression or statement is incomplete or incorrect.
}#
clc
va=[5,43:-41:2,11:76:87,12:-6:6,34:-34:0,5]

va =

5 43 2 11 87 12 6 34 0 5

clc
vd=[43,6:12:18,87,5:4:9]

vd =

43 6 18 87 5 9

clc
u=[21:-3:3,5:5:10,9:16:25,7:7:14,3:32:35]

u =

21 18 15 12 9 6 3 5 10 9 25 7 14
3 35

clc
A=zeros(2,5)

A =

0 0 0 0 0
0 0 0 0 0

B=eye(4)

B =

1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1

C=ones(3,2)

C =

1 1
1 1
1 1

clc
{#Warning: Function C:\Users\Yuli\Documents\MATLAB\plus.m has the same name as a
MATLAB builtin. We suggest you rename the function to avoid a potential name
conflict.}#
{#Warning: Function C:\Users\Yuli\Documents\MATLAB\plus.m has the same name as a
MATLAB builtin. We suggest you rename the function to avoid a potential name
conflict.}#
clc
clc
h=0.9 ,k=12.5, x=[1 2 3 4] ,y=[0.9 0.8 0.7 0.6] ,z=[ 2.5 3 3.5 4]

h =

0.9000

k =

12.5000

x =

1 2 3 4

y =

0.9000 0.8000 0.7000 0.6000

z =

2.5000 3.0000 3.5000 4.0000

T=x*y*z
{#??? Error using ==> mtimes
Inner matrix dimensions must agree.
}#
T=x.*y.*z

T =

2.2500 4.8000 7.3500 9.6000

T=(x.*y.*z)/(h+k).^(k/5)+( k.*exp(z./x+y))/(z.^h)

T =

48.5444 48.5483 48.5521 48.5556

clc
h=0.9 ,k=12.5, x=[1 2 3 4] ,y=[0.9 0.8 0.7 0.6] ,z=[ 2.5 3 3.5 4]

h =

0.9000

k =
12.5000

x =

1 2 3 4

y =

0.9000 0.8000 0.7000 0.6000

z =

2.5000 3.0000 3.5000 4.0000

T=(x.*y.*z)/(h+k).^(k/5)+( k.*exp(z./x+y))/(z.^h)

T =

48.5444 48.5483 48.5521 48.5556

clc
n=[1 10 10 500 1000 2000 4000 8000]

n =

1 10 10 500 1000 2000


4000 8000

uiopen('F:\.Trashes\Nueva carpeta\Nueva carpeta\david\01grafica.m',1)


uiopen('F:\.Trashes\Nueva carpeta\Nueva carpeta\david\programa02.m',1)
uiopen('F:\.Trashes\Nueva carpeta\Nueva carpeta\david\programa03.m',1)
uiopen('F:\.Trashes\Nueva carpeta\Nueva carpeta\david\programa04.m',1)
CLC
{#??? Undefined function or variable 'CLC'.
}#
clc
% Modify expression to add input arguments.
% Example:
% a = [1 2 3; 4 5 6];
% foo(a);

programa04

V =

250

h =

5 6 7 8 9

r =
6.9099 6.3078 5.8399 5.4627 5.1503

s =

185.1512 172.5171 167.2512 166.2487 167.7802

% Modify expression to add input arguments.


% Example:
% a = [1 2 3; 4 5 6];
% foo(a);

programa04
clc
% Modify expression to add input arguments.
% Example:
% a = [1 2 3; 4 5 6];
% foo(a);

programa04
% Modify expression to add input arguments.
% Example:
% a = [1 2 3; 4 5 6];
% foo(a);

programa04
% Modify expression to add input arguments.
% Example:
% a = [1 2 3; 4 5 6];
% foo(a);

programa04

% Modify expression to add input arguments.


% Example:
% a = [1 2 3; 4 5 6];
% foo(a);

programa04
uiopen('F:\.Trashes\Nueva carpeta\Nueva carpeta\david\programa06.m',1)
uiopen('F:\.Trashes\Nueva carpeta\Nueva carpeta\david\programa05.m',1)
% Modify expression to add input arguments.
% Example:
% a = [1 2 3; 4 5 6];
% foo(a);

programa05

T =

0 5 10 15 20

p0 =

50
p =

50.0000 59.4604 70.7107 84.0896 100.0000

uiopen('F:\.Trashes\Nueva carpeta\Nueva carpeta\david\programa06.m',1)


clc
% Modify expression to add input arguments.
% Example:
% a = [1 2 3; 4 5 6];
% foo(a);

programa06

t =

0 1 2 3 4 5 6 7 8 9 10

a =

1.5500

v =

0 1.5500 3.1000 4.6500 6.2000 7.7500 9.3000 10.8500


12.4000 13.9500 15.5000

d =

0 0.7750 3.1000 6.9750 12.4000 19.3750 27.9000 37.9750


49.6000 62.7750 77.5000

R =

0 0 0
1.0000 0.7750 1.5500
2.0000 3.1000 3.1000
3.0000 6.9750 4.6500
4.0000 12.4000 6.2000
5.0000 19.3750 7.7500
6.0000 27.9000 9.3000
7.0000 37.9750 10.8500
8.0000 49.6000 12.4000
9.0000 62.7750 13.9500
10.0000 77.5000 15.5000

Potrebbero piacerti anche