Answered step by step
Verified Expert Solution
Question
1 Approved Answer
,% -.111 80% 10:59 AM in-classEx1 - Read-only CS 101: In-Class Exercises #3 1. First, define A-12.345. B- [1:2:5; 2:2:6]. C-[10:-3:2]. and D'xyz123', then execute
,% -.111 80% 10:59 AM in-classEx1 - Read-only CS 101: In-Class Exercises #3 1. First, define A-12.345. B- [1:2:5; 2:2:6]. C-[10:-3:2]. and D'xyz123', then execute the (a) a input'type a number? 1 and input A, then a- (b) b-inputl'type a number?', 's') and input 1.2.3, then b (c) a-input'type a 2x3 array? and input B, thena (d) b-inputl'type a 1x3 array? 's) and input C, then b (e) a=input('type a 1x4 string?') and input D, then a = (f) b-input(type a 1x4 string? , 's1 and input [123, then b- (E) E-eye(3,6)*3, then E (h) F ones(2,3,2), then F- (i) How to create the following matrix by using build-in functions zeros), ones(), and/or eye()? size(E) size(F)- ndims(F)- CS 101: In-Class Exercises #2 1. The following instructions are in a sequence (a) a 1:2:7, then a- (b) b-5-2:1, then b (c) c = [a, b], then c and size(allength(a)- and size(b) - , and size(c)- length(b) = length(c)- 0-4:11, then a= and size(a) (e) a( , 2end )- , and size(d) , length(d)-- (f) If b is defined by the given matrix shown below, then: 1. bl2
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started