Question
Answered step-by-step

in MATLAB using if else statement, x = [1 2 3 4],  if x is greater than 2 then y = x + 1, otherwise, y = x - 1

Solution: y = [0 1 4 5]

Answer & Explanation
Verified Solved by verified expert
Rated Helpful

risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet


icitur laoreet. Nam


m risus ante, dapibus a mol

Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet

Unlock full access to Course Hero

Explore over 16 million step-by-step answers from our library

Subscribe to view answer
Step-by-step explanation

e vel laoreet ac, dictum vita


ec facilisis. Pe


a molesti

te

ng elit. Nam

consectetur adipis

a. Fusce dui l

fficitur laoreet. Nam

ac, dict

ec facilisis. Pellente

icitur

ac,

ac, dictum vit

Fusce


m ipsum dolor sit amet, consectetur ad


image.jpg

1 Attachment
image.jpg
jpg
Student review
100% (1 rating)

"Thanks for a concise and clear answer"