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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

Resuelto


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

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

Resuelto


Set Soldner's constant

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

Resuelto


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]

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

Cargar más