A résolu


COUNT VOWEL
Count, how many times vowels occurred. EXAMPLE: x='string the MaTLaBiAn' then the answer will be 6. x='coUnt the vowEl' th...

presque 5 ans il y a

A résolu


Flip coins

presque 5 ans il y a

A résolu


Write a function to generate AND operation

presque 5 ans il y a

A résolu


Vector creation using linspace
Create a vector y containing n uniformly spaced values between a and b, with a < b. Use linspace.

presque 5 ans il y a

A résolu


Plotting Practice
Plot cos(x) vs x as shown in the figure below. Include the appropriate title, x-label, and y-label. Note, it is case sensitive. ...

presque 5 ans il y a

A résolu


Matlab Basics - Rounding III
Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000

presque 5 ans il y a

A résolu


Sum of integers numbers
Sum of the numbers from 1 to 100

presque 5 ans il y a

A résolu


imaginary

presque 5 ans il y a

A résolu


Is my wife right?
Regardless of input, output the string 'yes'.

presque 5 ans il y a

A résolu


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

presque 5 ans il y a

A résolu


index of n^2 in magic(n)
input=5 magic matrix 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22 10 ...

presque 5 ans il y a

A résolu


The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...

presque 5 ans il y a

A résolu


Count the Number of Directed Cycles in a Graph
Given an asymmetric adjacency matrix, determine the number of unique *directed* cycles. For example, the graph represented by...

presque 5 ans il y a

A résolu


Back to basics 5 - Clipboard
Covering some basic topics I haven't seen elsewhere on Cody. Copy the input string to the clipboard

presque 5 ans il y a

A résolu


calculate Compound Intrest
Calculate Compound Intrest for given data

presque 5 ans il y a

A résolu


Bernoulli's Triangle
Generate the bernoulli's triangle upto nth row. <https://mathworld.wolfram.com/BernoulliTriangle.html>

presque 5 ans il y a

A résolu


Number of vertices of a hypercube
Return the number of vertices of a n-dimensional hypercube.

presque 5 ans il y a

A résolu


Delete 2nd and 5th column of Given 6*6 matrix
Delete the 2nd and 5th columns of the given 6*6 matrix. Example Suppose A = magic(6) 35 1 6 26 19 ...

presque 5 ans il y a

A résolu


Basic commands - Greatest common divisor
Please write a function, which, will put as output greatest common divisor. Example: A = [-5 17; 10 0];...

presque 5 ans il y a

A résolu


Find the sum of n squares
What is the sum of the squares of the first n integers?

presque 5 ans il y a

A résolu


Sum
Sum 1 and 2

presque 5 ans il y a

A résolu


Volume of a sphere given its surface area
You just measured its surface area, that is the input.

presque 5 ans il y a

A résolu


Hard limit function
Classify x data as if x>=0 then y=1 if x<0 then y=0 Example x = [ -2 -1 0 1 2] y = [ 0 0 1 1 1]

presque 5 ans il y a

A résolu


Draw 'F'
Draw a x-by-x matrix 'F' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 1 1 0 0 0 0 ...

presque 5 ans il y a

A résolu


Draw 'D'.
Draw a x-by-x matrix 'D' using 0 and 1. example: x=4 ans= [1 1 1 0 1 0 0 1 1 0 0 1 1 1 1 0]

presque 5 ans il y a

A résolu


Draw 'O' !
Given n as input, generate a n-by-n matrix 'O' using 0 and 1 . example: n=4 ans= [1 1 1 1 1 0 0 1 ...

presque 5 ans il y a

A résolu


Draw 'I'
Given n as input, draw a n-by-n matrix 'I' using 0 and 1. example: n=3 ans= [0 1 0 0 1 0 0 1 0] n=...

presque 5 ans il y a

A résolu


find whether it is prime or not
For a given number find if its prime

presque 5 ans il y a

A résolu


Binary Inversion
Given the unsigned 8-bit integer x, return the number y which is the binary inversion of x. For example if x is 5, y should b...

presque 5 ans il y a

A résolu


A shooting competition
In a shooting competition, the target is a square of side L containing a circle of radius R<=L/2. A player scores one point if h...

presque 5 ans il y a

Charger plus