Risolto

Give prime Numbers upto n

You are given a input number x; print all the prime numbers less than equal to x.

oltre 7 anni fa

Risolto

Make a full wave rectifier

Produce a full wave rectifier waveform for the given sine wave source. For a sine wave input, the output of the full wave rec...

oltre 7 anni fa

Risolto

Make a half wave rectifier

Produce a signal that outputs the given sine wave source when it is greater than zero and outputs zero when it is less than zero...

oltre 7 anni fa

Risolto

Connect blocks in a model

Connect the blocks in the model to produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/connect-blocks...

oltre 7 anni fa

Risolto

Produce a sine wave

Produce a sine wave with amplitude 3: <<http://blogs.mathworks.com/images/seth/cody/sine-eqn.png>>

oltre 7 anni fa

Risolto

Add offset to a signal

Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/add-offset-eqn.png>> You should see a downward...

oltre 7 anni fa

Risolto

Produce a cosine wave

Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/cosine-eqn.png>>

oltre 7 anni fa

Risolto

Add a block to a model

Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/add-block-eqn.png>> In this case, the slope of...

oltre 7 anni fa

Risolto

median3d filter

Give any 3D matrix A of size h,w,d and neighborhood radius r , find its median filtered output B. function B=median3d(A,r)

oltre 7 anni fa

Risolto

Triple function composition

Given three functions f,g and h, create the composed function y=f(g(h)). Example f = @(x) x+1 g = @(x) x/2 h = @(x) ...

oltre 7 anni fa

Risolto

Define the operators of function_handles

Suppose f and g are function_handles, try to define f+g,f-g,f*g and f/g. e.g. if f = @(x)x and g = @(x)x+1 ...

oltre 7 anni fa

Risolto

Divisible by n, prime vs. composite divisors

In general, there are two types of divisibility checks; the first involves composite divisors and the second prime divisors, inc...

oltre 7 anni fa

Risolto

Divisible by 13

Write a function to determine if a number is divisible by 13. Similar to the number seven, this can be done by a few different m...

oltre 7 anni fa

Risolto

Divisible by 14

Write a function to determine if a number is divisible by 14. If a number is <http://www.mathworks.com/matlabcentral/cody/proble...

oltre 7 anni fa

Risolto

Divisible by 11

Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

oltre 7 anni fa

Risolto

Divisible by 7

Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

oltre 7 anni fa

Risolto

Divisible by 16

Write a function to determine if a number is divisible by 16. This can be done by a few different methods. Here are two: # If...

oltre 7 anni fa

Risolto

Esoteric Trigonometry

From Wikipedia: "All of the trigonometric functions of an angle θ can be constructed geometrically in terms of a unit circle cen...

oltre 7 anni fa

Risolto

Create a Standard Size Vector

Given an input x, create a row vector y from 1 to x with 5 elements.

oltre 7 anni fa

Risolto

Combined Ages 2 - Symmetric, n ≥ 3

Following on <http://www.mathworks.com/matlabcentral/cody/problems/42382-combined-ages-1-symmetric-n-3 Combined Ages 2>, you wil...

oltre 7 anni fa

Risolto

Code Wheel

Create a function that offsets each value in a given string by a given amount. For instance, codewheel('hello',1) s...

oltre 7 anni fa

Risolto

Divisible by 15

Write a function to determine if a number is divisible by 15. If a number is <http://www.mathworks.com/matlabcentral/cody/proble...

oltre 7 anni fa

Risolto

Divisible by 12

Write a function to determine if a number is divisible by 12. Similar to the number six, this can be done by checking for divisi...

oltre 7 anni fa

Risolto

Divisible by 8

Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

oltre 7 anni fa

Risolto

Divisible by 6

Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

oltre 7 anni fa

Risolto

Divisible by 5

Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

oltre 7 anni fa

Risolto

Divisible by 4

Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

oltre 7 anni fa

Risolto

Divisible by 3

Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

oltre 7 anni fa

Risolto

Divisible by 2

This is the first problem in a set of "divisible by x" problems. You will be provided a number as a string and the function you ...

oltre 7 anni fa

Risolto

Divisible by 9

Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

oltre 7 anni fa