Answered
Replacing elements of a matrix of those of a Cell Array
Use the logical indexing with: find(ismember())

5 years ago | 0

Answered
How to find elements of a vector falling between minimum and maximum of an other vector without loop.
Logical indexing is the best option, e.g.: a=(1:1:10); b=[5.5 11; 13, 3; 10.5 10]; IDX = find(b>min(a) & b<max(a)); C(IDX)=1...

5 years ago | 0

| accepted

Answered
Load multiple matlab data files and convert them to text
If you are talking about series of files (e.g: P1.txt, P2.txt, ...) to load and convert their contents, then this might be an op...

5 years ago | 0

Answered
HOW TO REMOVE NOISE FROM A SIGNAL?
You code contains some errs and moreover, your question to smooth the curve is not quite appropriate for FFT. In case, you need ...

5 years ago | 0

Answered
Increasing datatip display precision (MATLAB 2019a)
That would be easier to round up your plotted data using round(data, Ndd), e.g.: X=round(x, 5); Y=round(Y,5); plot... % Th...

5 years ago | 0

Solved


Duplicates
Write a function that accepts a cell array of strings and returns another cell array of strings *with only the duplicates* retai...

5 years ago

Solved


Compute the sum of reciprocals of quadratics
Write a function to compute the following sum: See also Cody Problem 46000.

5 years ago

Solved


Fill a zeros matrix
The aim is to fill an array of all zeros given a numerical value and the index of row and columns for this value. 3 Inputs: ...

5 years ago

Solved


Generate a string like abbcccddddeeeee
This is the string version of Problem 1035. <http://www.mathworks.com/matlabcentral/cody/problems/1035-generate-a-vector-like-1-...

5 years ago

Solved


MATLAB Basics: Complex Argument
For a given complex number, x, return the argument, y, in degrees.

5 years ago

Solved


MATLAB Basics: Complex Conjugates
For a given complex number, x, return the complex conjugate, y.

5 years ago

Solved


Peg Solitaire - Apply Move
About Peg Solitaire . Previous Problem. Consider inital board; If we move the peg located on (4,6) to the left (4) directio...

5 years ago

Solved


Compute the harmonic numbers
The nth <https://mathworld.wolfram.com/HarmonicNumber.html harmonic number> is defined as the sum of the reciprocals of the inte...

5 years ago

Solved


X O X O
On a noughts and crosses board, how many possible unique combinations are there given a square grid of length n? Assumptions/...

5 years ago

Solved


World Cup 2018 Prediction!
Which team will be the winner?

5 years ago

Solved


Set Soldner's constant

5 years ago

Solved


Evaluate the zeta function for real arguments > 1
The <https://en.wikipedia.org/wiki/Riemann_zeta_function Riemann zeta function> is important in number theory. In particular, th...

5 years ago

Solved


Evaluate the logarithmic integral
The <https://en.wikipedia.org/wiki/Logarithmic_integral_function logarithmic integral> li(x) plays a role in number theory becau...

5 years ago

Solved


Evaluate the gamma function
The <https://mathworld.wolfram.com/GammaFunction.html gamma function> is a generalization of the factorial, and it appears in ma...

5 years ago

Solved


Numbers with prime factors 2, 3 and 5.
Make a function which takes one positive integer n and returns a matrix with the numbers of the form (2^i)*(3^j)*(5^k) which are...

5 years ago

Solved


Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

5 years ago

Solved


Pick the die most likely to win
After discussing Rock, Paper, Scissors, Lizard, Spock in The Simpsons and their Mathematical Secrets, Simon Singh writes that in...

5 years ago

Solved


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

5 years ago

Solved


Solve the Sudoku Row
*Description* A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...

5 years ago

Solved


Least common multiple of many numbers
1:6 -> 60

5 years ago

Solved


Find the nearest integer
Given a vector of integers and a real number find the closest integer. EX: >> a = [2 4 5 6 8 10]; >> b = 4.6; >> nea...

5 years ago

Solved


select the primes of a vector
Find the prime numbers in a vector

5 years ago

Solved


Swap two numbers
Example Input: a = 10 b = 20 Output a = 20 b = 10

5 years ago

Solved


Matlab Basics II - squares
Write a function that takes matrix A, and squares each element in the matrix example: A = [1 2 3] output = [1 4 9]

5 years ago

Solved


create a function that give us like the following
x=3 y= [1 -1 -1 0 1 -1 0 0 1]; -------------------------------- x=5 y= [ 1 -1 -...

5 years ago

Load more