Solved

Sum positive elements of matrix.
Calculate sum of positive elements of the matrix.

casi 4 años ago

Solved

Change matrix to vector
Vector is a matrix whose size is 1 x n or n x 1. Change matrix to vector. x = 4 3 5 1 ...

casi 4 años ago

Solved

Two dimensional moving average
A=[1 2 3 4 5 1 2 2 2 3 2 3 3 3 4 1 1 4 4 2] B=[1 1;1 1]; % This is can be used for weight factor of moving a...

casi 4 años ago

Solved

Triplicate me
Given an input vector, output a 3n vector with all elements of input vector repeated thrice Example : in->[1 2 3 5] out...

casi 4 años ago

Solved

Implement zero-based indexing for Matrices
Given an input vector and position (which is zero based) output the value Example: x = [1 2; 4 5] pos = [0 1] value = 5 ...

casi 4 años ago

Solved

Implement zero based indexing (Vectors only)
Given an input vector and position (which is zero based) output the value Example: x = [1 2 4 5] pos = 2 value = 4

casi 4 años ago

Solved

Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

casi 4 años ago

Solved

Frequency Analysis of Text
Frequency analysis is a common task in cryptoanalysis. It is essentially counting the occurrences of alphabets (regardless of ca...

casi 4 años ago

Solved

Magnitude of a vector
Given a vector x, what is its magnitude?

casi 4 años ago

Solved

Reduce the logic
We have three logical input, x,y and z. The output is: y = ((x&y)|z)&((z|x&y)|(z&y|x))|((x&z)|z)&((y|x&z)|(z&x|y))|(x|y|z) ...

casi 4 años ago

Solved

Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.

casi 4 años ago

Solved

cross in array
Make a cross from "1" in odd size array. Other value from array should be equal to "0"; As input you get length of side of arra...

casi 4 años ago

Solved

Geometrical meaning of determinant
Given two vectors x,y, in 2D or three vectors x,y,z in 3D space, compute the area (or volume) of the parallelogram they define. ...

casi 4 años ago

Solved

Convert a vector to a lower triangular matrix
I now have a row vector and I want to convert it to a lower trilangular matrix. The rows of the lower trilangular matrix have...

casi 4 años ago

Solved

Rotate array 90 degrees
Example, A = [1 2 3 ; 4 5 6 ] B = rotated(A) = [ 3 6; 2 5; 1 4 ]

casi 4 años ago

Solved

you are given a vector x. you have to make an output vector y with zeros padded between every adjacent values of x. e.g x: ...

casi 4 años ago

Solved

Euclidean inter-point distance matrix
The Euclidean distance between two points in a p-dimensional space is a really common thing to compute in the field of computati...

casi 4 años ago

hi am working on a code for gaussian elimination
The correct function is: function [x,U]=gausselim(A,b) % function to perform gauss eliminination %FORWARD ELI...

alrededor de 4 años ago | 1

| accepted

Submitted

Vectorized Numerical Integration Matlab
Program for the numerical integration of functions in a vectorized fashion for increased speed

Submitted

Newton Raphson Line Search
Solution of equations with the quasi-Newton-Raphson method accelerated by a line search algorithm

Solved

solid of revolution
Given an real polynomial P and two real numbers a,b with 0<=a<=b. Calculate the volume of the solid of revolution made by rota...

más de 4 años ago

Solved

Euler–Mascheroni constant
Approximate the Euler-Mascheroni constant using the series representation gamma_n=\sum_{k=1}^{n} [1/k-ln(1+1/k)] Calculat...

más de 4 años ago

Solved

Coefficients and vertex of a parabola given 3 points
Given 3 points, each defined by x and y, compute the coefficients: [a,b,c] of a parabola with equation: y = ax^2 + bx + c passin...

más de 4 años ago

Solved

Identify the sequence
Given a row vector, x, return 1 if it is an arithmetic series, or 2 if it is a geometric series. If it is neither, return 0. ...

más de 4 años ago

Solved

Babylonian method
Calculate the square root of a given positive number a using the Babylonian method (https://en.wikipedia.org/wiki/Methods_of_co...

más de 4 años ago

Solved

Regular polygon bounded by and bounding a circle
As the number of sides (or vertices) of a regular polygon goes to infinity, its perimeter and area go to the perimeter and area ...

más de 4 años ago

Solved

"Power matrix" of two vectors
Given two row vectors x,y of lengths m and n (respectively), create an m x n matrix whose i,j entry is x(i)^y(j).

más de 4 años ago

Solved

Accessing values in a cell
You are given c, which is a 1xN cell array, and a and b, which are each two 1xM vectors. Your job is to give the bth value in t...

más de 4 años ago

Solved

Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

más de 4 años ago

Solved

Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

más de 4 años ago