Write a matlab script to create a variable b containing 60


Q1. Write a Matlab script to do the following. Create the variable A containing the numbers from 1 to 50. Using a FOR loop go through A and count the number of values of A that are above 20.
Q2. Write a Matlab script to create a variable B containing 60 random numbers from 0 to 2. Next using a WHILE loop go through all 60 numbers and count the number of values of B that are below 1.4. Store this answer in the variable COUNT. After exiting the loop simply display the value of COUNT with no message.
Q3. What is the Matlab code to create a graph with the variable t on the X axis and h=4(t-3)^2 on the Y axis? Note that t varies from 0 to 10 with steps of 0.1

Request for Solution File

Ask an Expert for Answer!!
Electrical Engineering: Write a matlab script to create a variable b containing 60
Reference No:- TGS0624162

Expected delivery within 24 Hours