Solved


Generate vector according to sign of vector
Generate vector according to sign of vector Example: If A=[-2 0 5] then output must be[-1 0 1] meaning that for negative n...

9 years ago

Solved


Count number of words in string
Count number of words in string Examples 'hi', answer is 1 'hi hi', answer is 2 'I enjoy cody', answer is 3

9 years ago

Answered
solve an equation by iterration
Put Sigma in the other side of the equation by changing it sign, and then use *fsolve*. <https://it.mathworks.com/help/optim/ug...

9 years ago | 2

Solved


Consecutive Powers
Return 2 numbers and 2 powers such that their difference is 1 A 4 element row vector is expected: x where x(1)^x(2) - x(...

9 years ago

Solved


Make a diamond
Given n, odd number > 1, return n by n matrix consist of "null" and "*" characters arranged like a diamond. No toolbox funct...

9 years ago

Solved


Parse string and identify specific string sequence in algebraic equation
Given a string S that defines an algebraic expression such as: S= 'X= A1 + A2*(Y1 + A3*Y3)*exp( A4*Y12 + Y1) ;' return a...

9 years ago

Solved


Create a dictionary
The goal is to write a function that returns a dictionary from a list of words or phrases and their definitions. Here is an exam...

9 years ago

Solved


A quadrant matrix
Write a function called quadrants that takes as its input argument a scalar integer named n. The function returns Q, a 2n-by-2n ...

9 years ago

Solved


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

9 years ago

Solved


Fix the last element of a cell array
Note: this is lifted directly from <http://www.mathworks.com/matlabcentral/answers/82825-puzzler-for-a-monday Puzzler for a Mond...

9 years ago

Solved


Create a matrix with difference of each row of input matrix
With a given input matrix A, create a output matrix B in such a way that each row in B is a difference of rows of input matrix A...

9 years ago

Solved


Hardy-Ramanujan number
Find the first Hardy-Ramanujan number.

9 years ago

Answered
Finite difference problem with matlab 2014
Your problem is equaivalent to this (without the variable t, which redundant here as it is used only for indexing purposes). Sin...

9 years ago | 3

| accepted

Answered
give name to node in dendrogramm
Use the 'Labels' property of the dendogram plot. Keep in mind that dendrogram labels any leaves in the dendrogram plot containin...

9 years ago | 3

| accepted

Answered
two dimensional for loop - "matrix dimensions must agree"
*Do not use* commas to separate decimals as in N = [1000, 10,000, 100,000]; In matlab commas are only to separate betwe...

9 years ago | 4

| accepted

Answered
Is there a Row limit when transfering a matlab table to CSV file?
Depending on Office version, there are limitations in the maximum number of rows Excel can load. To really know how many rows th...

9 years ago | 2

Answered
Fitting a 3D sine function to topographic data?
A simple idea is to downsample your data (also called decimation). Since your data is very regular, you can remove a lot of samp...

9 years ago | 3

Answered
How to find the R peaks in QRS complexes
Here you cannot use built in matlab function findpeaks, because it works only in 1D. To work in 2D use this: <https://it.math...

9 years ago | 3

Answered
Min and max in integral
To get max of symbolic variables x,y try this: max(double([x,y]))

9 years ago | 3

Answered
How to display specific points and values?
To display also top axis, use box on; I didn't get what is the other problem. Can you explain better?

9 years ago | 3

Answered
How can I detect the difference b/w indices of vector and stop it as well?
To get the differences between all consecutive values of x, better use the built-in matlab function diff(), and then thresholdin...

9 years ago | 3

Solved


Bruh
Return 'bruh'.

9 years ago

Solved


Product of Array
Given an array of numbers. Get the product of the array.

9 years ago

Solved


Matrix multiplication across rows
Given matrix m, return matrix n such that, rows of n are result of multiplication of the rows of the input matrix Example ...

9 years ago

Solved


Sort the vector with the given index
Given x = [1 2 4 8 17] and t = [1 3 2 5 4] then y = [1 4 2 17 8].

9 years ago

Solved


Determine the Anti-diagonal of a Magic Square
Determine the anti-diagonal (crossing from top right to lower left) of a magic square of size n. Examples If n = 3 y =...

9 years ago

Solved


Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

9 years ago

Solved


Slicing the cube
A bored matlab enthusiast has a cube with volume n^3. He decides to paint the entire surface of the cube red. Then, with slices...

9 years ago

Solved


Sum of series III
What is the sum of the following sequence: Σ(2k-1)^3 for k=1...n for different n?

9 years ago

Solved


Simple problem creating a function from an abstract specification.
MYSTERYFUNCTION3 This takes a vector of numbers v and computes a vector w such the w[i] is the average of v[i] and the previous...

9 years ago

Load more