Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

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

fast 10 Jahre vor | 2

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

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

fast 10 Jahre vor | 3

| akzeptiert

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

fast 10 Jahre vor | 3

| akzeptiert

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

fast 10 Jahre vor | 4

| akzeptiert

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

fast 10 Jahre vor | 2

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

fast 10 Jahre vor | 3

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

fast 10 Jahre vor | 3

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

fast 10 Jahre vor | 3

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

fast 10 Jahre vor | 3

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

fast 10 Jahre vor | 3

Gelöst


Bruh
Return 'bruh'.

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Mehr laden