Answered step by step
Verified Expert Solution
Question
1 Approved Answer
all questions must solve with matlab codes Question 1 - Write a matlab program that takes a string from a user and finds whether the
all questions must solve with matlab codes
Question 1 - Write a matlab program that takes a string from a user and finds whether the taken string has different letters or not. Example1: Example2: Write a string: Matlab Write a string: Pencil Matlab has same letters. Pencil has different letters. 1/ Question 2 - Write a matlab code to select a random character among a,b,c,d,e,f,g. Question 3 - Define a 1x9 vector which contains 4, 77, 3, 88, 0, -6, -22, 34,9. Create a second vector that takes same values with first vector. But, program should put values of second vector randomly. Example: Second vector is 3,0, 88, -6, 9, -22, 77, 4, 34 Question 4 - Write a matlab function that takes a grayscale image and zooms in (2x larger). Function should return a zoomed image as an output. Question 5 - Write a matlab function that takes a grayscale image and zooms out. Function should return a zoomed image as an output. Question 6 - Write a matlab program that creates a 3x6 matrix. Fill matrix with random integer numbers whose range is between 45 and 125. Then, take a number from a user. Finally, display the result whether the taken number exists in the matrix or not. If it exists, you should also show row and column number of it. Example: Matrix is 46 100 120 99 77 47 50 55 97 49 91 60 55 122 52 84 89 92 60 117 102 Write a number: 84 84 locates at 3. row and 2. column. Question 7 - Write a matlab program that creates a 1x8 vector with random integer numbers whose range is 8 and 48. a- Use ""notation and convert 1x8 vector to 2x4 matrix. b- Use for loop and convert 1x8 vector to 2x4 matrix. C- Use while loop and convert 1x8 vector to 4x2 matrix. Example: Vector is 32 13 26 11 28 34 40 15 Result is 32 13 26 11 28 34 40 15 1 2 3 456 789 1 1 2 2 3 3 11 22 33 4 4 5 5 6 6 445566 778899 778899Step 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