#source code:
a=input("Enter number between 0-100:");
if(a>=0 && a<=45)
fprintf("Super Weenie Hut Junior\n");
elseif(a>45 &&a <=90)
fprintf("Weenie Hut Junior\n");
elseif(a>90 && a<=100)
fprintf("Salty Spitoon\n");
end

#output:

#second one:
A=[9 5 4 0 10 7 9];
for i=1:7
if(A(i)<5)
A(i)=0;
end
end
disp(A);
#output:

#if you have any doubt or more information needed comment below..i will respond as possible as soon..if you like give thumbs up..thanks...
do it using MATLAB plz and fast plaz full work 1. The residents of Bikini Bottom...
We will be using Matlab as the software tool for this lab project. 1.Explore and become familiar with the random number generators in Matlab such as “rand”, “randn”, and “randi” (in fact all software tools can only generate pseudo-random numbers). Notice that to randomize the generators the use of “rng” function is encouraged as the previous techniques are discouraged. 2. “Random walk” is one of the primary and relative simple random processes in which the process starts from a neutral...
MATLAB HW 11 problem using Switch Case and Input commands Write a script file that calculates the cost of a movie tickets according to the following price schedule: Number of Tickets being purchased Time of Movie < =5 tickets 6 to 9 tickets >=10 tickets Afternoon $6 $30 + $5 for the number of tickets above 5 $50 + $4 for the number of tickets above 9 Weeknight $7 $35 + $6 for the number of tickets above 5...
answer 8 using matlab
Using nested loops, traverse through the matrix for the following. a) Replace all elements divisible by 3 with 100. b) Replace all elements divisible by 2 with 50. c) Replace the first element of each row with 10. d) Display the all elements of the 2D matrix as a 10 array (9 elements in 1 row) 8) Write a function file that determines the maximum element of an input matrix A using nested loops and counts...
Hello, can you do this in matlab full solution thanks
Purpose: To practice using the MatLab interface. practice with Matrix Arithmetic Operation. Degree of Difficulty: Easy After the fourth shinobi world war, it becomes a rule in Konoha that to be a jenin (the lowest level of ninja) from an academic student (ninja-student) anyone needs to get 1000 points. A student can earn points by finishing different missions. Below is a chart showing the individual mission points based on the...
answer 4, 5, 6, 7 using matlab
Homework 10 1. Write the correct first-line syntax for a user defined function that is named Feynman and has input variables q and e, and outputs L and M. (Comment out of this line). 2. Using zeros, ones, and eye commands write the one line syntax to create the following matrix: 00000 01100 01010 01001 3. Write the syntax for the user defined function that calculates the surface area and volume of a...
Problem 3 (13 pts): (modified from Attaway Problem 3.39) a) (5 pts) Using the Matlab rand () function, create a script that generates a row vector (1 row X 20 columns) of random numbers, each with magnitude between 0 and 5 b) (3 pts) Use the round() function to turn all of the values into whole numbers by rounding down (truncate the decimal part on your vector) c) (5 pts) Add code to your script to generate a new vector...
Submission Items: (1) A Word document in which you: a. Describe in brief the problem you are solving and the numerical method used. b. Snapshot of the output, when you run the program for the conditions mentioned in the questions. c. Discuss your results. (2) MATLAB code (m) file() Question 1: [10 points) Write a MATLAB function that calculates the approximate value of arctan(x) using the Maclaurin series approximation: arctan(x) = x- + +... The function should accept 3 parameters:...
using this array
I need to create a user created function in Matlab
that does the following
I have this so far but I'm so lost
could you please make this with comments on what the
codes do
Lure dueren suuj (COM 94 97 95 19 91 88 95 87 90 72 78 60 98 87 81 79 76 69 192 80 77 73 78 70 80 89 81 186 94 901 b. Find the lowest grade in Math subject...