0% found this document useful (0 votes)
33 views6 pages

Lab 8

Uploaded by

Sergiu Sabo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views6 pages

Lab 8

Uploaded by

Sergiu Sabo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 6

x-0:1:1

{#Unrecognized function or variable 'x'.


}#
x=
x=

{#Error: Invalid expression. Check for missing or extra
characters.
}#
=
=

{#Error: Incorrect use of '=' operator. To assign a value to a
variable, use '='. To compare values for equality, use '=='.
}#
.
.

{#Error: Invalid use of operator.
}#
x-0:.1:1
{#Unrecognized function or variable 'x'.
}#
x=0:.1:1

x =

Columns 1 through 6

0 0.1000 0.2000 0.3000 0.4000 0.5000

Columns 7 through 11

0.6000 0.7000 0.8000 0.9000 1.0000

format compact
x=(0:.1:1).'
x =
0
0.1000
0.2000
0.3000
0.4000
0.5000
0.6000
0.7000
0.8000
0.9000
1.0000
doc sin
y=x.*sin(pi*x)
y =
0
0.0309
0.1176
0.2427
0.3804
0.5000
0.5706
0.5663
0.4702
0.2781
0.0000
[x y]
ans =
0 0
0.1000 0.0309
0.2000 0.1176
0.3000 0.2427
0.4000 0.3804
0.5000 0.5000
0.6000 0.5706
0.7000 0.5663
0.8000 0.4702
0.9000 0.2781
1.0000 0.0000
e=0.15:1
e =
0.1500
e=0.15:1
e =
0.1500
e=0:.15:1
e =
Columns 1 through 6
0 0.1500 0.3000 0.4500 0.6000 0.7500
Column 7
0.9000
%ex3
A=[2 -3 0
7 -5 1
0 -1 2]
A =
2 -3 0
7 -5 1
0 -1 2
b=[1;0;1]
b =
1
0
1
x=inv(A)*b
x =
-0.5000
-0.6667
0.1667
x=A\b
x =
-0.5000
-0.6667
0.1667
doc plot
%ex4
a=0lb=1;n=100;
a=0lb=1;n=100;

{#Error: Invalid expression. Check for missing multiplication
operator, missing or unbalanced delimiters, or other syntax
error. To construct matrices, use brackets instead of
parentheses.
}#
l;b=1; a=0*lb; n=100;
{#Unrecognized function or variable 'l'.}#
a=0;b=1; n=100;
h=(b-a)/(n-1)
h =
0.0101
x=a:h:b
x =
Columns 1 through 6
0 0.0101 0.0202 0.0303 0.0404 0.0505
Columns 7 through 12
0.0606 0.0707 0.0808 0.0909 0.1010 0.1111
Columns 13 through 18
0.1212 0.1313 0.1414 0.1515 0.1616 0.1717
Columns 19 through 24
0.1818 0.1919 0.2020 0.2121 0.2222 0.2323
Columns 25 through 30
0.2424 0.2525 0.2626 0.2727 0.2828 0.2929
Columns 31 through 36
0.3030 0.3131 0.3232 0.3333 0.3434 0.3535
Columns 37 through 42
0.3636 0.3737 0.3838 0.3939 0.4040 0.4141
Columns 43 through 48
0.4242 0.4343 0.4444 0.4545 0.4646 0.4747
Columns 49 through 54
0.4848 0.4949 0.5051 0.5152 0.5253 0.5354
Columns 55 through 60
0.5455 0.5556 0.5657 0.5758 0.5859 0.5960
Columns 61 through 66
0.6061 0.6162 0.6263 0.6364 0.6465 0.6566
Columns 67 through 72
0.6667 0.6768 0.6869 0.6970 0.7071 0.7172
Columns 73 through 78
0.7273 0.7374 0.7475 0.7576 0.7677 0.7778
Columns 79 through 84
0.7879 0.7980 0.8081 0.8182 0.8283 0.8384
Columns 85 through 90
0.8485 0.8586 0.8687 0.8788 0.8889 0.8990
Columns 91 through 96
0.9091 0.9192 0.9293 0.9394 0.9495 0.9596
Columns 97 through 100
0.9697 0.9798 0.9899 1.0000
plot(x,y)
{#Error using <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('plot')"
style="font-weight:bold">plot</a>
Vectors must be the same length.}#
y=a:b:a
y =
0
plot(x,y)
doc title
title('graficul functiei y=x*sin(\pi*x)')
doc xlabel
xlabel('x')
y=a:b:h
y =
0
y=a:h:b
y =
Columns 1 through 6
0 0.0101 0.0202 0.0303 0.0404 0.0505
Columns 7 through 12
0.0606 0.0707 0.0808 0.0909 0.1010 0.1111
Columns 13 through 18
0.1212 0.1313 0.1414 0.1515 0.1616 0.1717
Columns 19 through 24
0.1818 0.1919 0.2020 0.2121 0.2222 0.2323
Columns 25 through 30
0.2424 0.2525 0.2626 0.2727 0.2828 0.2929
Columns 31 through 36
0.3030 0.3131 0.3232 0.3333 0.3434 0.3535
Columns 37 through 42
0.3636 0.3737 0.3838 0.3939 0.4040 0.4141
Columns 43 through 48
0.4242 0.4343 0.4444 0.4545 0.4646 0.4747
Columns 49 through 54
0.4848 0.4949 0.5051 0.5152 0.5253 0.5354
Columns 55 through 60
0.5455 0.5556 0.5657 0.5758 0.5859 0.5960
Columns 61 through 66
0.6061 0.6162 0.6263 0.6364 0.6465 0.6566
Columns 67 through 72
0.6667 0.6768 0.6869 0.6970 0.7071 0.7172
Columns 73 through 78
0.7273 0.7374 0.7475 0.7576 0.7677 0.7778
Columns 79 through 84
0.7879 0.7980 0.8081 0.8182 0.8283 0.8384
Columns 85 through 90
0.8485 0.8586 0.8687 0.8788 0.8889 0.8990
Columns 91 through 96
0.9091 0.9192 0.9293 0.9394 0.9495 0.9596
Columns 97 through 100
0.9697 0.9798 0.9899 1.0000
doclinspace
{#Unrecognized function or variable 'doclinspace'.}#
doc linspace
x=linspace a,b
x=linspace a,b

{#Error: Invalid expression. Check for missing multiplication
operator, missing or unbalanced delimiters, or other syntax
error. To construct matrices, use brackets instead of
parentheses.
}#
x=linspace(a,b,n)
x =
Columns 1 through 6
0 0.0101 0.0202 0.0303 0.0404 0.0505
Columns 7 through 12
0.0606 0.0707 0.0808 0.0909 0.1010 0.1111
Columns 13 through 18
0.1212 0.1313 0.1414 0.1515 0.1616 0.1717
Columns 19 through 24
0.1818 0.1919 0.2020 0.2121 0.2222 0.2323
Columns 25 through 30
0.2424 0.2525 0.2626 0.2727 0.2828 0.2929
Columns 31 through 36
0.3030 0.3131 0.3232 0.3333 0.3434 0.3535
Columns 37 through 42
0.3636 0.3737 0.3838 0.3939 0.4040 0.4141
Columns 43 through 48
0.4242 0.4343 0.4444 0.4545 0.4646 0.4747
Columns 49 through 54
0.4848 0.4949 0.5051 0.5152 0.5253 0.5354
Columns 55 through 60
0.5455 0.5556 0.5657 0.5758 0.5859 0.5960
Columns 61 through 66
0.6061 0.6162 0.6263 0.6364 0.6465 0.6566
Columns 67 through 72
0.6667 0.6768 0.6869 0.6970 0.7071 0.7172
Columns 73 through 78
0.7273 0.7374 0.7475 0.7576 0.7677 0.7778
Columns 79 through 84
0.7879 0.7980 0.8081 0.8182 0.8283 0.8384
Columns 85 through 90
0.8485 0.8586 0.8687 0.8788 0.8889 0.8990
Columns 91 through 96
0.9091 0.9192 0.9293 0.9394 0.9495 0.9596
Columns 97 through 100
0.9697 0.9798 0.9899 1.0000
diary off
doc edit
cdit fisier1 fisier2 fisier3 fisier 4
{#Unrecognized function or variable 'cdit'.}#
eedit fisier1 fisier2 fisier3 fisier4

load('lab7.mat')
load('lab7.mat')
edit("primul meu fisier script.n")
doc open
open fisier4
s.a
{#Unable to resolve the name s.a.}#
open fisier 2
{#Error using <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('open')"
style="font-weight:bold">open</a>
Too many input arguments.}#
matlab.internal.language.introspective.errorDocCallback('open')
fisier 2
{#Unrecognized function or variable 'fisier'.}#
load('matlab.mat')
open fisier 4
{#Error using <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('open')"
style="font-weight:bold">open</a>
Too many input arguments.}#
doc scanf
media=
media=

{#Error: Invalid expression. Check for missing or extra
characters.
}#

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