Resuelto


Linear system of equations
Solve the system of equations in three variables.

más de 5 años hace

Pregunta


All possible combinations of a number of an array
Hi , I've a vector , a =[ 1 2 3]. I want to have all possible combinations of elements of a as belows ; 27 in total o/p : a_o ...

más de 5 años hace | 2 respuestas | 0

2

respuestas

Pregunta


Putting specific values to a matrix
Hi , I'm having following problem. I have 3 numberx 1,2,3 I've to form a matrix with entries with all possible of numbers...

más de 5 años hace | 1 respuesta | 0

1

respuesta

Resuelto


Orthonormal matrix
You decide whether any given matrix is an orthonormal matrix or not. If each column in a matrix is perpendicular to the other...

más de 5 años hace

Pregunta


Removing specific rows from a matrix where its corresponding element in another column is zero.
Hi All, I've a matrix abc, I want to remove those columns from it where its corresponding element in third column is zero. Fo...

más de 5 años hace | 1 respuesta | 0

1

respuesta

Resuelto


Angle between Two Vectors
The dot product relationship, a dot b = | a | | b | cos(theta), can be used to determine the acute angle between vector a and ve...

más de 5 años hace

Resuelto


Angle between two vectors
You have two vectors , determine the angle between these two vectors For example: u = [0 0 1]; v = [1 0 0]; The a...

más de 5 años hace

Resuelto


Are you in or are you out?
Given vertices specified by the vectors xv and yv, and a single point specified by the numbers X and Y, return "true" if the poi...

más de 5 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 5 años hace

Resuelto


Duplicate each element of a vector.
for an n-dimensional vector x, the function should return another vector 2n-dimension which each element is repeated twice. Ex...

más de 5 años hace

Resuelto


Negative matrix
Change the sign of all elements in given matrix.

más de 5 años hace

Resuelto


Are all the three given point in the same line?
In this problem the input is the coordinate of the three points in a XY plane? P1(X1,Y1) P2(X2,Y2) P3(X3,Y3) how can...

más de 5 años hace

Resuelto


Right and wrong
Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...

más de 5 años hace

Resuelto


Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...

más de 5 años hace

Resuelto


Get all prime factors
List the prime factors for the input number, in decreasing order. List each factor. If the prime factor occurs twice, list it as...

más de 5 años hace

Resuelto


Rounding off numbers to n decimals
Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

más de 5 años hace

Resuelto


only input
Return the output without writing any code into the function.

más de 5 años hace

Resuelto


Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
The given function returns the index of the maximum value in a given matrix. such as X=[4,3,4,5,9,12,0,5] Ans= 6 if maxim...

más de 5 años hace

Resuelto


Inner product of two vectors
Find the inner product of two vectors.

más de 5 años hace

Resuelto


What day is it?
Tell me what day is it. Return the full name of the day of the week as a string. e.g. It's June 12th 2014, so your function s...

más de 5 años hace

Resuelto


How many days in a month?
Return the number of days in a given month in 2017. If the input is not a valid month number, return -1. Examples: Input...

más de 5 años hace

Resuelto


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

más de 5 años hace

Resuelto


Convert radians to degrees
Given input in radians, output to degrees

más de 5 años hace

Resuelto


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

más de 5 años hace

Resuelto


Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

más de 5 años hace

Resuelto


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

más de 5 años hace

Resuelto


02 - Vector Variables 5
_eVec_ = _Hello_ ( _eVec_ is a string, which is a vector of characters )

más de 5 años hace

Resuelto


03 - Matrix Variables 6
Make _fMat_ be a 5x3 matrix of random integers with values from -3 to 3 (Hint: use *randi*)

más de 5 años hace

Resuelto


Test Problem; Create a 5x5 array containing all ones
This is a test for learning the process of creating a Cody problem. The goal of this test problem will be to create an array,...

más de 5 años hace

Resuelto


Is my wife right?
Regardless of input, output the string 'yes'.

más de 5 años hace

Cargar más