Question
Matlab program in need of the solution is necessary within half an hour

8 marks 0-4 A- Printing numbers from 10 to 20 without number 15. B-Write in Matlab program to display all the prime numbers f
0 0
Add a comment Improve this question Transcribed image text
Answer #1

4. A 10:20 x= [10: 14, 16:20 fprintf (&= %f m; m); B) n - first number : second number; n = 1:100; P = is prime (n); ner?S.A function [sx1] = unt (x) sx-length th (x); X2 = x; for y= li hengeth (x) Mix] - min (x); [sxly) x (ix) = []; end if is eqelse. fprintf(in It is not sorted end ted);

Add a comment
Know the answer?
Add Answer to:
Matlab program in need of the solution is necessary within half an hour 8 marks 0-4...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Fluid machines, need solution in half an hour is necessary? Fluid machines lneed solution in half...

    Fluid machines, need solution in half an hour is necessary? Fluid machines lneed solution in half an hour is necessary Q5/ A pipeline of 600 mm diameter and 4000 m length connects two reservoirs. The difference of water levels in the reservoirs is 20 m. At a distance of 1000 m from the upper reservoir, a small pipe is connected to the pipeline. The water can be taken from the small pipe. Find the discharge to the lower reservoir if:...

  • This question pertains to numerical analyzes. The solution needed within half an hour is necessary Du...

    This question pertains to numerical analyzes. The solution needed within half an hour is necessary Du 5 The value of a most nearly is ..... for The following data Х 1.5 2 2.5 w 3.5 у N+1 N+1.5 N+2.5 N+4 N+5.5 N+6.5 is regressed with least squares regression to (y = ab”). Where N: your number إجابتك

  • Please write a Java program that does the following: Create an array of 100 integers. Store...

    Please write a Java program that does the following: Create an array of 100 integers. Store 100 random integers (between 1 and 100) in the array. Print out the elements of the array. Sort the array in ascending order. Print out the sorted array. Prompt the user to enter a number between 1 and 100. Search the array for that number and then display "Found" or "Not Found" message. Display each number from 1 to 100 and the number of...

  • Engineering Economics .... I need to solution this question within less than half hour necessary and...

    Engineering Economics .... I need to solution this question within less than half hour necessary and very urgently , please please show step by step A reactor, which will contain corrosive liquid, has been design. If the reactor is made of mild steel, the initial installed cost will be $6000, and the useful life period will be 4 years. Since stainless steel is highly resistant to the corrosive action of the liquids, stainless steel, as the material of construction, has...

  • What is the solution ?? rite a program to print prime numbers between 50 to 500, using while statement.) Q3- W (8 Marks) 04-if I Write C++ piece of code that make Х, X6 Х, Х, X3 X2 X, Xo S Marks)...

    What is the solution ?? rite a program to print prime numbers between 50 to 500, using while statement.) Q3- W (8 Marks) 04-if I Write C++ piece of code that make Х, X6 Х, Х, X3 X2 X, Xo S Marks) rite a program to print prime numbers between 50 to 500, using while statement.) Q3- W (8 Marks) 04-if I Write C++ piece of code that make Х, X6 Х, Х, X3 X2 X, Xo S Marks)

  • Write a C program that reads a sequence of numbers and display a message 1. The...

    Write a C program that reads a sequence of numbers and display a message 1. The numbers a re red from the standard input. 2. The first number is the length of the sequence (n) followed by n numbers. 3. If n is 0 or negative, the program displays the message "Error_1" followed 4. If the length is shorter than n, it displays "Error_2" followed by a new line 5. The program inspects the list and display one of the...

  • write a Matlab program ( solve the three questions). please use array and create your own...

    write a Matlab program ( solve the three questions). please use array and create your own function to check primality Question 1 : [10 points) Write a MATLAB program that will store all the first 1000 prime numbers in an array variable named arr_of_primes. Please note that a prime number is a positive integer that is bigger than or equal to 2 which is divisible only by 1 and itself. Examples of the first 8 primes are: 2, 3, 5,...

  • Write a C program which computes the count of the prime and perfect numbers within a...

    Write a C program which computes the count of the prime and perfect numbers within a given limit Land U, representing the lower and upper limit respectively. Prime numbers are numbers that have only 2 factors: 1 and themselves (1 is not prime). An integer number is said to be perfect number if its factors, including 1 (but not the number itself), sum to the number. Sample Inputi: 1 100 Sample Outputs: Prime: 25 Perfect: 2 Sample Input2: 101 10000...

  • Write a complete JAVA program to do the following program. The main program calls a method...

    Write a complete JAVA program to do the following program. The main program calls a method to read in (from an input file) a set of people's three-digit ID numbers and their donations to a charity (hint: use parallel arrays)Then the main program calls a method to sort the ID numbers into numerical order, being sure to carry along the corresponding donations. The main program then calls a method to print the sorted 1ists in tabular form, giving both ID...

  • Write a program that reads records containing an employee number and an hourly rate for several...

    Write a program that reads records containing an employee number and an hourly rate for several employees, and stores these in a heap, using employee number as a key. The program should then allow the user to insert or delete records, and finally use heap sort to sort the updates list so that the employee numbers are in ascending order, and to display this sorted list. You can use the algorithms from the text book. Example of an employee records...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT