Resuelto


'Repeat!'
if matrix x=[1 2;3 4] y should be [1 2 1 2; 3 4 3 4; 1 2 1 2; 3 4 3 4;............],repeat n times! try this!

más de 9 años hace

Resuelto


Where is the number that you want to find?
For a given matrix A, find where the input number x appears. Do this task by returning the vector which contains the row and th...

más de 9 años hace

Resuelto


Put two time series onto the same time basis
Use interpolation to align two time series onto the same time vector. This is a problem that comes up in <http://www.mathwork...

casi 10 años hace

Resuelto


merge two matrices together in one matrix
a= [1 2 3 4]; b=[5 6 7 8]; take the first column from matrix (a)and (b)then insert them in matrix (c) respectively, and so on;...

casi 10 años hace

Resuelto


Get derivarive of polynomial given as vector array.
Get derivarive of polynomial given as vector array. Example p=[ 1 2 0 5 0 3 ]; result=[ 5 8 0 10 ...

casi 10 años hace

Resuelto


Divide polynomial p1 by p2.
Divide polynomial p1 by p2 given as vectors. Return result q and r vectors which corresponds the quotient and remainder of divis...

casi 10 años hace

Resuelto


Multiply two polynomials p and q given in in vector representation.
Multiply two polynomials p and q given in vector representation. Example p=[-2 0 1 -1 3 2] q=[1 0 -1 2 ...

casi 10 años hace

Resuelto


Check if a string starts with another string
Input s='He was so tired' q='He' Output ans = true

casi 10 años hace

Resuelto


4 Digit Sequence Repetitions
Given a 4 digit integer, a sequence can be created such that the next digit in the sequence is the ones digit from the sum of th...

casi 10 años hace

Resuelto


Find product of eigenvalues of n*n magic matrix.
Find product of eigenvalues of n*n magic matrix. Example n=3 Matrix= [ 8 1 6; 3 5 7; 4 ...

casi 10 años hace

Resuelto


What do you get if you multiply six by nine?
The Hitchhiker's Guide to the Galaxy based task.

casi 10 años hace

Resuelto


Convert array of decimal numbers into hexadecimal numbers array.
Convert array of decimal numbers into hexadecimal numbers array. Example x =[ 32 33 34 35 36 37 38 ...

casi 10 años hace

Resuelto


Convert array of decimal numbers into binary numbers array.
Convert array of decimal numbers into binary numbers array. Example x = [1 2 3 4 5 6 7 8 ]; re...

casi 10 años hace

Resuelto


Find the sum of the negative elements under the main diagonal.
Example Input A=[1 2; -3 0] Output -3

casi 10 años hace

Resuelto


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 10 años hace

Resuelto


Number of primes
Count the number of primes less than 'n'.

casi 10 años hace

Resuelto


Calculate circle's property
[A R]=function(r) r is radius, A is area of circles, R is circumference. A=pi*r^2 R=2*pi*r

casi 10 años hace

Resuelto


BASICS - sum part of vector
Please make a function, where as input you get vector "x" and and vector "c", where in "c" vector you get indexes to sum. Examp...

casi 10 años hace

Resuelto


Adding machine
Add number to all elements in given vector.

casi 10 años hace

Resuelto


isnan()
Replace all nans with zeros

casi 10 años hace

Resuelto


Get 1-4-3-4-4
Get the value of the indices in the title and assign it to an array

casi 10 años hace

Resuelto


Count me in
Count the number of occurrences of the second input in the first input Ex. x1 = 12344455511; x2 =2; output = 1 x1 = 123444...

casi 10 años hace

Respondida
reading a .txt
Try something like: function M=read_X() fid=fopen('01.txt'); fgetl(fid); % YOKO fgetl(fid); % START M=[]; ...

casi 10 años hace | 0

Respondida
imshow, imcrop and imread to set a predefined coordinate system to analyze images
For the first image use : [GT,rec] = imcrop(G); (rec is a 4-element vector with the form [XMIN YMIN WIDTH HEIGHT]) For ...

casi 10 años hace | 0

Resuelto


Marvel or DC?
Given input vector determine if there's a DC value. If there is, output 'DC', else output 'MARVEL'

casi 10 años hace

Resuelto


I told you not separate me, but you did :( - ACDC
Given input vector, output it's DC and AC value Example: input = 0 1 -1 0 ac = 0 1 -1 0 dc = 0

casi 10 años hace

Resuelto


Calculate the hypotenuse of a right triangle without using ^ and sqrt ()
Find out the hypotenuse of right triangle. Say a = 4, b = 3 then c = 5 Please don't use ^ and sqrt() function.

casi 10 años hace

Resuelto


ESEMPIO
controllo uso funzioni

casi 10 años hace

Resuelto


extract part elements of matrix into one new matrix
Given a matrix, includes different elements(plus, minus and zero), extract the nonzero elements and form a new matrix. for examp...

casi 10 años hace

Resuelto


Remove all the columns contains only zero
Remove the column from the matrix which has only zeros . Refer the Example below a= 1 0 3 0 23 0 56 0 1 ...

casi 10 años hace

Cargar más