A résolu


Basic matlab numeric and string manipulations
If entered input (n) is _numeric_ , compute its *log to the base (n+2)* , if it is a _lower case_ alphabet, *convert it to i...

plus de 7 ans il y a

A résolu


Percentage profit:5: Cumulative Interest
If a bank is giving r% yearly cumulative interest for deposit, how much profit we can get by keeping x amount of money for n mon...

plus de 7 ans il y a

A résolu


The maximum sum of squares (testing)
Create a function file with an input maxval to determine the maximum number of terms for the series 1^2 + 2^2 + 3^2 + ... such t...

plus de 7 ans il y a

A résolu


Normie Function
So, I built a function and gave it a name- _Normie_. *Find the nth term of Normie function:* _f(n)= 1*f(n-1)+ 2*f(n-3)+ 3_ , *...

plus de 7 ans il y a

A résolu


The last non-zero digit of a factorial
For given positive integer n, what is the last non-zero digit of n!? Example: factorial(11) = 39916800 Last non-zero d...

plus de 7 ans il y a

A résolu


basic finance application
i watch bloomberg everyday and i want to estimate a stock price stability, so i have to calculate the momentum & the rate of cha...

plus de 7 ans il y a

A résolu


Find the mean of a 2-D matrix after excluding elements of specified sub-matrix
You need to find the mean of a 2-D matrix after excluding elements which form an inner sub-matrix. e.g. If the input 2-D matrix ...

plus de 7 ans il y a

A résolu


Calculate the square of a number (Super Easy)
The goal is to calculate the square (y) of a number (x). Good way to start MatLab for beginners.

plus de 7 ans il y a

A résolu


Numbers on 7-segment
This is a 7-segment: _ |_| |_| It's a 3-by-3 char matrix.It has made by 3 characters: '_' , '|' and ' ' (space...

plus de 7 ans il y a

A résolu


Testing Problem Creation
This is where MATLAB based question will be

plus de 7 ans il y a

A résolu


Diagonal Pattern
For a positive integer |n|, return an |nXn| matrix |mat| such that the value of each element in row |i| and column |j| is given ...

plus de 7 ans il y a

A résolu


Basic Monte Carlo Simulation
Input is a matrix including service time and probability of service time. Another input is a random number. Function should tran...

plus de 7 ans il y a

A résolu


Pascal's triangle
<https://en.wikipedia.org/wiki/Pascal%27s_triangle> if the order is: x = 3; the output will be: output = [0 0 0 1 0 0 ...

plus de 7 ans il y a

A résolu


Delete the column with all 0 in the TABLE
In the given table (T), delete the column with all 0 data. e.g. input Banana Apple Orange Mellon __...

plus de 7 ans il y a

A résolu


Let's Make A Deal: The Player's Dilemma 2
Suppose you're on a game show, and you're given the choice of three doors: Behind one door is a car; behind the others, goats. Y...

plus de 7 ans il y a

A résolu


Let's Make A Deal: The Player's Dilemma
Suppose you're on a game show, and you're given the choice of three doors: Behind one door is a car; behind the others, goats. Y...

plus de 7 ans il y a

A résolu


Let's Make A Deal: Criminal Minds
The game of Let's Make A Deal proceeds as follows; The player is given the choice of three doors: Behind one door is a car; b...

plus de 7 ans il y a

A résolu


Monte Carlo integration: area of a polygon
The area of a polygon (or any plane shape) can be evaluated by <https://www.mathworks.com/matlabcentral/cody/problems/179 Monte ...

plus de 7 ans il y a

A résolu


Find the area of a triangle having vertices (A,B), (C,D), and (E,F)
Find the area of a triangle using if we have the three vertices of the triangle

plus de 7 ans il y a

A résolu


Return all matrix elements except elements on diagonal
Consider a given Matrix A=[a b c; d e f; g h i] then return a row vector T such that it contains all the El...

plus de 7 ans il y a

A résolu


Get the combinations
Consider p,q = 2 vectors of same or different length. Get a Output Array which has all the possible combinations of Elements o...

plus de 7 ans il y a

A résolu


Dial Up
Each number on telephone keypads, except 0 and 1, corresponds to a set of uppercase letters as shown in this list: 2 ABC, 3 DEF...

plus de 7 ans il y a

A résolu


Counting Squares
An algorithm starts with a single square and on each of its next iterations adds new squares all around the outside as shown bel...

plus de 7 ans il y a

A résolu


Raise each element to the power of its index in a matrix
In a matrix, A = [1,2;3,4] raise the power of each element like: 1^1+2^3+3^2+4^4 and add it all to produce the result 274

plus de 7 ans il y a

A résolu


Remove white spaces at the end of the input string
Remove all trailing white spaces at the end of the input strings

plus de 7 ans il y a

A résolu


Pizza order
A pizza order by phone in diameter d1, pizza will be make only in diameter d2. Return the pizza pieces p should be make.(pizza ...

plus de 7 ans il y a

A résolu


Capitalized string operations
Convert the input sentence to upper case and replace all vowels with an underscore ('_')

plus de 7 ans il y a

A résolu


Calculate time taken by light to reach earth surface
We know the time(seconds) taken by light to reach surface of earth. What if the distance varies yearly or source of light moves ...

plus de 7 ans il y a

A résolu


Create a magic square matrix for a given odd integer
A magic square of size 'N' is a matrix that satisfies the following criterias: # Dimension - NxN # Matrix should contain ALL...

plus de 7 ans il y a

A résolu


Find the missing numbers.
Total *N* numbers are in the series of natural numbers ( *1,2,3,...,N* ). The input is an array (unsorted) of those natural num...

plus de 7 ans il y a

Charger plus