Solved


Go back n times
You will be given a column vector (such as x = [1; 2; 3; 4; 5; 6]). If (n=3) you will return following; [ 1 NaN NaN NaN ...

4 years ago

Solved


Check if integer
Given a vector of elements, determine if each element is an integer and return true or false accordingly.

4 years ago

Solved


Matrix to 3-Column Matrix
Consider a matrix *A* such as A = [1 2 3 3 4 5 6; 2 3 4 5 6 7 8]; Can you convert this matrix to a three-column ...

4 years ago

Solved


the number of inputs
Find the number of the inputs of the function. example y = theinputnumber(x,k); function called theinputnumber has 2 in...

4 years ago

Solved


Place numbers
Given two input first input is a matrix which consist of the index numbers of the second input vector. You place the second inpu...

4 years ago

Solved


Convert Cylindrical Cooridinates into Spherical Coordinate
For Cylindrical coordinate point, rho, fie (degrees) and z. Convert these points in Spherical Cooridinate System and save result...

4 years ago

Solved


Where is she?
Given the numbers 12, 3, 6, 9 Tell where the girl is located. That is: Look to your 3 o'clock = look right Example ...

4 years ago

Solved


Remove and Sort
Given a randomized array n, sort it and remove all odd integers. n=5 y = [2 4]

4 years ago

Solved


Is It a Palindrome?
Given a string or array, determine if it is a palindrome.

4 years ago

Solved


solve for y that is half as much as three less than one tenth of x
function y = half(x) y = (x * .1); end

4 years ago

Solved


sum of binomial series

4 years ago

Solved


Squares of odd numbers upto a given range
Find the squares of odd numbers upto a given range. If Given x=6 return y=(1^2,3^2,5^2) y=1,9,25 If Given x=5 retu...

4 years ago

Solved


prime to each other
Given two integers n1, n2 greater than 1, find out if they have common divisors or are prime to each other. Return "true" if the...

4 years ago

Solved


Number of occurrences of letter in a text
Given an input text either as a string or as a cell array of strings, return a (1 x 26) matrix containing the number of occurren...

4 years ago

Solved


multiple of nine?
Given a positive number n, return true if n is a multiple of 9 and false if not. Do not make the division and do not use functio...

4 years ago

Solved


Count of Unique Elements of a Vector
Count the number of times each unique element appears in a vector. Example: Input x = [2 9 1 2 4 9 2] Output y = [1 1; 2 3; 4...

4 years ago

Solved


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 ...

4 years ago

Solved


Curve fitting (linear functions) & function handles
In this problem you are provided some raw data. You need to find a way of summarising the data with just a few parameters, so t...

4 years ago

Solved


First use of arrayfun() and anonymous function @(x)
Create an anonymous function using @(x) for a parabola equation for the given coefficients stored in s with s(1)x2 + s(2)x + s(...

4 years ago

Solved


Pass the Threshold!!
Write a Matlab function that will take as input a matrix of arbitrary dimensions and a scalar threshold value, and return a vec...

4 years ago

Answered
min/max finding
a=randi(10000,24,60); Min=min(a,[],2); Max=max(a,[],2);

4 years ago | 0

Answered
matlab coding - finding shortest path problem
e=[]; %generate adjacency matrix K=1:100; a=11:10:81;b=20:10:90;c=2:9;d=92:99; e=[e;[a',a'+1];[a',a'+10];[a',a'-10];[a',a'-9...

4 years ago | 1

| accepted

Solved


N-th Digit of all Write-Down Numbers
Write-Down Numbers are: 123456789101112131415161718192021222324252627282930... What is the N'th digit (where N is represented a...

4 years ago

Problem


N-th Digit of all Write-Down Numbers
Write-Down Numbers are: 123456789101112131415161718192021222324252627282930... What is the N'th digit (where N is represented a...

4 years ago | 1 | 6 solvers

Solved


n-th digit of write-down all numbers
Write down number as 123456789101112131415161718192021222324252627282930... what's the n-th digit? input n and get the digit.

4 years ago

Answered
How to take every third number from every line from matrix textfile 100x72
m=readmatrix('yourMatrix.file');

4 years ago | 1

Answered
How to create a function that checks if a word is a palindrome?
x='racecar'; isequal(x,flip(x));

4 years ago | 0

| accepted

Answered
How do I I get the first 15 solution of the equation
Plot first, then use fzero to find exact zeros. a=1;b=2; eqn=@(x)besselj(0,x*a).*bessely(0,x*b)-bessely(0,x*a).*besselj(0,x*b)...

4 years ago | 0

Answered
How to select same numbers with tolerance?
X = [ 2.5,3.65,0,0.25,0.35,0.035,0.00025,1,4.65,5.85] newMatrix=X(X<1);

4 years ago | 0

Answered
Help with an exercise
x=0:.01:2*pi; sigma=0.25; s=sigma*randn(1,length(x)); y=sin(x); plot(x,y,x,y+s);

4 years ago | 1

Load more