NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io


Classroom License -- for classroom instructional use only.

>> a=4

a =

4

>>
>> a=4;
>> 55-44

ans =

11

>> 25-a

ans =

21

>> A=6,a=5;

A =

6

>> A=6,a=5;x=1;

A =

6

>> x=2+i*4

x =

2.0000 + 4.0000i

>> pi

ans =

3.1416

>> format long
>> pi

ans =

3.141592653589793

>> format short
>> pi

ans =

3.1416

>> a=[1 2 3 4]

a =

1 2 3 4

>> b=[1;2;3;4]

b =

1
2
3
4

>> a

a =

1 2 3 4

>> a'

ans =

1
2
3
4

>> A=[1 2 3; 4 5 6; 8 9 10]

A =

1 2 3
4 5 6
8 9 10

>> B=[1 2; 4 5; 6 9]

B =

1 2
4 5
6 9

>> A=[[1 4 7]' [2 5 7]' [3 6 9]']

A =

1 2 3
4 5 6
7 7 9

>> b

b =

1
2
3
4

>> b[3]
b[3]

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

>> b(3)

ans =

3

>> A

A =

1 2 3
4 5 6
7 7 9

>> A(2,2)

ans =

5

>> A(3,3)

ans =

9

>> who

Your variables are:

A B a ans b x

>> E=zeros(2,3)

E =

0 0 0
0 0 0

>> u=ones(1,3)

u =

1 1 1

>> t=1:5

t =

1 2 3 4 5

>> t=1:0.5:5

t =

1.0000 1.5000 2.0000 2.5000 3.0000 3.5000 4.0000 4.5000 5.0000

>> t=10:-1:5

t =

10 9 8 7 6 5

>> A

A =

1 2 3
4 5 6
7 7 9

>> A(1,:)

ans =

1 2 3

>> A(:,3)

ans =

3
6
9

>> t

t =

10 9 8 7 6 5

>> t(2:4)

ans =

9 8 7

>> linspace(1,6,10O)
linspace(1,6,10O)

Error: Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or
other syntax error. To construct matrices, use brackets instead of parentheses.

Did you mean:
>> linspace(1,6,10)

ans =

1.0000 1.5556 2.1111 2.6667 3.2222 3.7778 4.3333 4.8889 5.4444 6.0000

>> linspace(1,6,3)

ans =

1.0000 3.5000 6.0000

>> logspace(-1,2,4)

ans =

0.1000 1.0000 10.0000 100.0000

>> f='Bahcesehir';
>> s='University';
>> t=' ';
>> x=[f t s]

x =

'Bahcesehir University'

>> f="Bahcesehir"

f =

"Bahcesehir"

>> x=[f t s]

x =

1×3 string array

"Bahcesehir" " " "University"

>> 2*pi

ans =

6.2832

>> y=pi/4

y =

0.7854

>> y=-4^2

y =

-16

>> y=(-4)^2

y =

16

>> x=2+i*4

x =

2.0000 + 4.0000i

>> 3*x

ans =

6.0000 +12.0000i

>> x^2

ans =

-12.0000 +16.0000i

>> A=[1 2 3 4; 5 6 7 8; 9 10 11 60]

A =

1 2 3 4
5 6 7 8
9 10 11 60

>> a*b

ans =

30

>> c=[1 2 3];
>> c*A

ans =

38 44 50 200

>> c.*A
Matrix dimensions must agree.

>> a.*A

ans =

1 4 9 16
5 12 21 32
9 20 33 240

>> A^2
Error using ^
Incorrect dimensions for raising a matrix to a power. Check that the matrix is square and the power is a
scalar. To perform elementwise matrix powers, use '.^'.

>> A.^2

ans =

1 4 9 16
25 36 49 64
81 100 121 3600

>> B=[1 2 3; 4 5 6; 7 8 9]

B =

1 2 3
4 5 6
7 8 9

>> B^2

ans =

30 36 42
66 81 96
102 126 150

>> B.^2

MATLAB has lost its connection to the license server.
MATLAB will make 9 more reconnection attempt(s) and then exit. Any unsaved changes will be lost.

>> B.^2

ans =

1 4 9
16 25 36
49 64 81

>>
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.