Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

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

más de 9 años hace | 2

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

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

más de 9 años hace | 3

| aceptada

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

más de 9 años hace | 3

| aceptada

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

más de 9 años hace | 4

| aceptada

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

más de 9 años hace | 2

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

más de 9 años hace | 3

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

más de 9 años hace | 3

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

más de 9 años hace | 3

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

más de 9 años hace | 3

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

más de 9 años hace | 3

Resuelto


Bruh
Return 'bruh'.

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Cargar más