You are on page 1of 16

>> insvarname test

Unrecognized function or variable 'insvarname'.

Did you mean:

isvarname test

ans =

logical

>> isvarname Test

ans =

logical

>> isvarname if

ans =

logical

>> isvarname mi-libro


ans =

logical

>> isvarname mi_libro

ans =

logical

>> isvarname Esteesunnombremuylargoperoinclusoasisepermite?

ans =

logical

>> isvarname lergrupo

ans =

logical

>> isvarname grupo_uno


ans =

logical

>> isvarname zzaAbc

ans =

logical

>> isvarname z34wAwy?12#

ans =

logical

>> isvarname sin

ans =

logical

1
>> isvarname log

ans =

logical

>>

>>

>> iskeyword test

ans =

logical

>> iskeyword Test

ans =

logical

>> iskeyword if

ans =

logical
1

>> iskeyword mi-libro

ans =

logical

>> iskeyword Esteesunnombremuylargoperoinclusoasisepermite?

ans =

logical

>> iskeyword lergrupo

ans =

logical

>> iskeyword grupo_uno

ans =
logical

>> iskeyword zzaAbc

ans =

logical

>> iskeyword z34wAwy?12#

ans =

logical

>> iskeyword sin

ans =

logical

>> iskeyword log

ans =
logical

>> which test

'test' not found.

>> which Test

'Test' not found.

>> which if

built-in (C:\Program Files\Polyspace\R2020a\toolbox\matlab\lang\if)

>> which mi-libro

'mi-libro' not found.

>> which Esteesunnombremuylargoperoinclusoasisepermite?

'Esteesunnombremuylargoperoinclusoasisepermite?' not found.

>> which lergrupo

'lergrupo' not found.

>> which grupo_uno

'grupo_uno' not found.

>> which zzaAbc

'zzaAbc' not found.

>> which z34wAwy?12#

'z34wAwy?12#' not found.

>> which sin

built-in (C:\Program Files\Polyspace\R2020a\toolbox\matlab\elfun\@double\sin) % double


method

>> which log

built-in (C:\Program Files\Polyspace\R2020a\toolbox\matlab\elfun\@double\log) % double


method

>>

>>

>>
>> 6/6+5

ans =

>> 2*6^2

ans =

72

>> (3+5)*2

ans =

16

>> 3+5*2

ans =

13

>> 4*3/2*8

ans =

48

>> 3-2/4+6^2
ans =

38.5000

>> 2^3^4

ans =

4096

>> 2^(3^4)

ans =

2.4179e+24

>> 3^5+2

ans =

245

>> 3^(5+2)

ans =

2187

>>

>>
>> (5+3)/(9-1)

ans =

>> 2^3-4/(5+3)

ans =

7.5000

>> 5^2+1/(4-1)

ans =

25.3333

>> 5^(2+1)/(4-1)

ans =

41.6667

>> 4*(1/2)*5(2/3)

4*(1/2)*5(2/3)

Error: Invalid expression. When calling a function or indexing a variable, use parentheses.
Otherwise,

check for mismatched delimiters.


>> 4*(1/2)*5*(2/3)

ans =

6.6667

>> 5+6*(7/3)-2^2/(2/3)*3/3*6

ans =

-17

>> 5+6*(7/3)-2^2/(2/3)*(3/3*6)

ans =

-17

>> (5+6*(7/3)-2^2)/(2/3)*(3/3*6)

ans =

135

>>

>>

>>

>>

>>

>> a=[2.3 5.8 9

a=[2.3 5.8 9
a=[2.3 5.8 9

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

equality, use '=='.

>>

>> a=[2.3 5.8 9]

a=

2.3000 5.8000 9.0000

>> sin(a)

ans =

0.7457 -0.4646 0.4121

>> a+3

ans =

5.3000 8.8000 12.0000

>> b=[5.2 3.14 2]

b=

5.2000 3.1400 2.0000


>> a.*b

ans =

11.9600 18.2120 18.0000

>> a.^2

ans =

5.2900 33.6400 81.0000

>> c=0:10

c=

0 1 2 3 4 5 6 7 8 9 10

>> d=0:2:10

d=

0 2 4 6 8 10

>> e=linspace(10,20,6)

e=

10 12 14 16 18 20

>> f=logspace(1,2,5)
f=

10.0000 17.7828 31.6228 56.2341 100.0000

>>

>>

>>

>>

>> 1+3/4

ans =

1.7500

>> 5*6*(4/2)

ans =

60

>> (5/2)*6*4

ans =

60

>> 5^2*3

ans =
75

>> 5^(2*3)

ans =

15625

>> 1+3+5/5+3+1

ans =

>> (1+3+5)/(5+3+1)

ans =

>>

>>

>> 5^2

ans =

25

>> (5+3)/5.6

ans =
1.4286

>> (4+6^3)^1/2

ans =

110

>> (4+6^3)^(1/2)

ans =

14.8324

>> 9*(6/12)+7.5^(3+2)

ans =

2.3735e+04

You might also like