i dont know how to write this code in one command can someone help me

์กฐํšŒ ์ˆ˜: 1 (์ตœ๊ทผ 30์ผ)
mike john
mike john 2020๋…„ 4์›” 20์ผ
๋Œ“๊ธ€: Rena Berman 2020๋…„ 5์›” 14์ผ
Perform the following using one command
1. Generate an empty matrix N
2. Initialize elements of ๐‘ (3 โˆ— 4)to be zeros
3. Generate matrix ๐‘‚ and fill it with ones (same size of N) 4. Matrix ๐ฟ= 3 1 7; 2 4 โˆ’2; 2 โˆ’1 0 , find matrix ๐‘‹ in which all elements of ๐ฟ are doubled 6 2 14 ;4 8 โˆ’4; 4 โˆ’2 0
5. Find matrix ๐‘Œ, in which all elements of ๐‘‹ are less by 1
6. Find matrix ๐‘, which is the sum of elements in ๐‘Œ and x
  ๋Œ“๊ธ€ ์ˆ˜: 3
Stephen23
Stephen23 2020๋…„ 4์›” 22์ผ
Original question by mike john, recovered from Google Cache:
"i dont know how to write this code in one command can someone help me"
Perform the following using one command
1. Generate an empty matrix N
2. Initialize elements of ? (3 โˆ— 4)to be zeros
3. Generate matrix ? and fill it with ones (same size of N) 4. Matrix ?= 3 1 7; 2 4 โˆ’2; 2 โˆ’1 0 , find matrix ? in which all elements of ? are doubled 6 2 14 ;4 8 โˆ’4; 4 โˆ’2 0
5. Find matrix ?, in which all elements of ? are less by 1
6. Find matrix ?, which is the sum of elements in ? and x
Rena Berman
Rena Berman 2020๋…„ 5์›” 14์ผ
(Answers Dev) Restored edit

๋Œ“๊ธ€์„ ๋‹ฌ๋ ค๋ฉด ๋กœ๊ทธ์ธํ•˜์‹ญ์‹œ์˜ค.

์ฑ„ํƒ๋œ ๋‹ต๋ณ€

BALAJI KARTHEEK
BALAJI KARTHEEK 2020๋…„ 4์›” 20์ผ
N=[];%empty matrix geneation
N=zeros(3,4)% Question 2
O=ones(3,4)% Qusetion 3
L=[3 1 7; 2 4 -2;2 -1 0];
X=L+L;% Qusetion 4
Y=X-ones(3,3);% Qusetion 5
Z=Y+X% Qusetion 6

์ถ”๊ฐ€ ๋‹ต๋ณ€ (0๊ฐœ)

์นดํ…Œ๊ณ ๋ฆฌ

Help Center ๋ฐ File Exchange์—์„œ Waveform Generation์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด๊ธฐ

ํƒœ๊ทธ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by