Answered step by step
Verified Expert Solution
Question
1 Approved Answer
matlab for first name use kerolos and last name just kero plz 12 71% + LFOSS 125 p 1) Ask the user to enter a
matlab
for first name use kerolos and last name just kero plz
12 71% + LFOSS 125 p 1) Ask the user to enter a value and assign it to variable a 2) Display the number you entered as below using disp' and variable a The value that you entered is a 3) Ask the user to enter a matrix and assign it to variable b 4) Ask the user to enter first name in single quotes and assign it to variable 5) Ask the user to enter last name (without using single quotes) and assign it to variable d 6) (2 pts) Display the following as it is using 'disp' and variables c and d (there should be a space between in each word) Hi Biest nane last name 7) Define x 1f -25 * 53 8) [2 pts) Display the following as it is(in two rows) using 'disp and variable The values in the x array are : 9) [2 pts] Display the following as it is (in a single row) using 'disp and variable x The values in the x array are: -2-1012 ) 10) (2 pts) Display the following as it is using 'disp Don't you love MATLAB 11) 12 pts) Ask the user to enter the course nane (EN5336) and number of students in the class (30) and assign them to variables 'class' and 'students' respectively, 12) (2 pts) Use "print to display the following as it is using the variables students and 'class' There are 30 students in ENS3 class 13) (2 pts Create the variables voltage-1.5 and current-1.25. Use the fprintf! to display the following as it is (no reros in decimal places) using the variables voltage and current The voltage is 1.5V The current is 1.25 od 12 71% + 11) [2 pts) Ask the user to enter the course name (ENS336) and number of students in the class (30) and assign them to variables 'class' and 'students' respectively. 12) [2 pts) Use 'print' to display the following as it is using the variables 'students and 'class There are 30 students in ENS 336 class 13) (2 pts) Create the variables voltage-1.5 and current-1.25. Use a single 'fprintf to display the following as it is(no zeros in decimal places) using the variables "voltage and current The voltage is 1.5V The current is 1.25A 14) Calculate corresponding voltages V 1f 1-0.01:001:0.es A and R-83 ohm (V-I**) 15) [2 pts) Use "fprintf command to display I and V in a two column table. I must be displayed with two decinal places and with three decimal places, Insert column headings. 16) 12 pts] Use a single 'fprintf command to display the following as it is using the variables V and 1. Display V with two decimal places. Voltage is ...V 1f current-0.01A Voltage is -..Vif current-0.02A Voltage is ..V 1f current-0.03A Voltage 15 ...V If current -0.04A Voltage is ..V 11 current-1.0SA 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