0% found this document useful (0 votes)
36 views13 pages

Guia Matlab

The document contains solutions to 25 math problems involving calculations with numbers, variables, matrices and operations like addition, multiplication, exponents, logarithms, trigonometric functions, and matrix operations. The problems include calculating values, identifying whether equations are true, extracting elements from matrices, and combining matrices.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views13 pages

Guia Matlab

The document contains solutions to 25 math problems involving calculations with numbers, variables, matrices and operations like addition, multiplication, exponents, logarithms, trigonometric functions, and matrix operations. The problems include calculating values, identifying whether equations are true, extracting elements from matrices, and combining matrices.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Resolución de la guía N°01

% Solución del problema (1)

%1.b

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

ans =

80.9026

% Solución del problema (2)

%2.a

2+7^3+((273^(2/3))/2)+(55^2)/3

ans =

1.3744e+03

%2.b

2^3+7^3+(273^3)/2+(55^(2/3))

ans =

1.0174e+07

% Solución del problema (3)

%3.a

((3^7)*log(76))/((7^3)+546)+(910^(1/3))

ans =

20.3444

%3.b

43*((250^(1/4))+23^2)/exp(45-(3^3))

ans =

3.4904e-04
% Solución del problema (4)

%4.a

((cos(5*pi/6))^2)*sin((7*pi/8)^2)+(tan((pi/6)*log10(8)))/sqrt(7)

ans =

0.9104

%4.b

cos((5*pi/6)^2)((sin(7*pi/8))^2)+(tan((pi/6)*log10(8)))/(7(5/2))

% Solución del problema (5)

%5.a

x=13.5;

(x^3)+5*(x^2)-26.7.*x-56;

%%5.b

x=13.5;

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

%%5.c

x=13.5;

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

% Solución del problema (6)

x=9.6;

z=8.1;

%%6.a

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

%%6.b

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

% Solución del problema (7)

a=15.62;

b=-7.08;

c=62.5;

d=0.5((a*b)-c);
%%7.a

a+((a*b)*(a+d^2)/sqrt(abs(a*b)));

%%7.b

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

% Solución del problema (8)

%volumen de una esfera es : V=(4*pi*r^3)/3

r=350;

V=(4*pi*r^3)/3

V=

1.7959e+08

% Solución del problema (9)

x=(5*pi)/24;

%%9.a

sin(2*x)=2*(sin(x))*cos(x)

%Yes

%%9.b

%cos(x/2)=sqrt((1+cos(x))/2)

%Yes

% Solución del problema (10)

x=(3*pi)/17

%%10.a

%tan(2*x)=(2*(tan(x)))/(1-(tan(x))^2)

%Yes;

%%10.b

%tan(x/2)=sqrt((1-cos(x))/(1+cos(x)))

%Yes
% Solución del problema (12)

a=11;
c=21;
%12.a
%c^2=(a^2)+(b^2)
b=sqrt((c^2)+(a^2))
b=

23.7065

% Solución del problema (13)

a=18;
b=35;
c=50;
gama=acos(((a^2)+(b^2)-(c^2))/(2*a*b))
gama =

2.4261

%% Solución del problema (15)

flores=751;
cant_x_caja=12;
cociente=floor(flores/cant_x_caja)

cociente =
62

%% Solución del problema (16)

%mcm de dos números


a=4;
b=10;
if b>a
aux=b;
b=a;
a=aux;
end
x=a;
y=b;
while b~=0
r=mod(a,b);
a=b;
b=r;
end
mcm=(x/a)*y
% Solución del problema (19)

C = [2 4 6 8 10; 3 6 9 12 15; 7 14 21 28 35]


ua=C(:,3)
ub=C(2,:)

C=

2 4 6 8 10
3 6 9 12 15
7 14 21 28 35
ua =

6
9
21

ub =

3 6 9 12 15

% Solución del problema (20)

C = [1 2 3 4 5 6 7; 2 4 6 8 10 12 14; 21 18 15 12 9 6 3; 5 10 15 20 25 30 35]
%a
B= [1:7;2:2:14;21:-3:3;5:5:35]
%b
u= [9 6 3 25 30 35]

C=

1 2 3 4 5 6 7
2 4 6 8 10 12 14
21 18 15 12 9 6 3
5 10 15 20 25 30 35

B=
1 2 3 4 5 6 7
2 4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0 9 9 9
4 4 7 0 9 9 9
0 0 0 0 0 0 1

A=

2 2 2 0 5 5 5
2 2 2 0 5 5 5
3 3 3 0 5 5 5
0 0 0 1 0 0 0
4 4 7 0 9 9 9
4 4 7 0 9 9 9
4 4 7 0 9 9 9
% Solución del problema (23)

A= [zeros(3,1) zeros(3,1) ones(3,1) ones(3,1) zeros(3,1)]

A=

0 0 1 1 0
0 0 1 1 0
0 0 1 1 0
% Solución del problema (24)

A= [1:7; 8:14; 15:21; 22:28; 29:35]


A1=[A(2,4):A(2,6); A(3,4):A(3,6); A(4,4):A(4,6); A(5,4):A(5,6)]

A=
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31 32 33 34 35

A1 =

11 12 13
18 19 20
25 26 27
32 33 34
% Solución del problema (25)

A= ones(3)
B= 5*ones(2)
A1=horzcat(A,zeros(3,2))
A2=horzcat(zeros(2,3),B)
Anueva=vertcat(A1,A2)

A=

1 1 1
1 1 1
1 1 1

B=
5 5
5 5

A1 =

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

A2 =

0 0 0 5 5
0 0 0 5 5

Anueva =

1 1 1 0 0
1 1 1 0 0
1 1 1 0 0
0 0 0 5 5
0 0 0 5 5

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy