A résolu


remove single elements
Given a vector of integers, remove the elements that have appeared only once. The output elements should be in exact order as th...

environ 8 ans il y a

A résolu


Isothermal Expansion
Given the initial pressure and volume of an ideal gas, calculate the new volume, given the new pressure. Hint: <https://en.wi...

environ 8 ans il y a

A résolu


Geometric Series
Given x and n, give the sum of x ^ 1 to x ^ n. You should not have to use a loop for this.

environ 8 ans il y a

A résolu


Simple Caesar Cypher - shift encrypt a message given an index number
A Caesar cypher is a simple shift encryption method. Your goal is to create a function that allows a user to input a string and ...

environ 8 ans il y a

A résolu


Vector to 3-Column Matrix
Consider a vector *A* such as A = [1 2 3 3 4 5 6] Can you convert this vector to a three-column matrix like this: ...

environ 8 ans il y a

A résolu


Make an identity matrix whose diagonal elements are 1:n
For a given input n, make an n by n identity matrix that contains the elements 1:n along its diagonal. For example, if input=5: ...

environ 8 ans il y a

A résolu


Modulation index
The amplitude of the carrier signal is 2V and the amplitude of the modulating signal is 8V. Find its modulation index.

environ 8 ans il y a

A résolu


Baseball Pitch Question
One pitcher made 10 practice pitches during his warm up before the game. Using the given information, create a vector matrix an...

environ 8 ans il y a

A résolu


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.

environ 8 ans il y a

A résolu


Convert decimal to binary and then generate the minimum binary it can with jumbling
input is 10 --> 1010 output should be 3 --> 0011 input 23 --> 10111 output should be 15 --> 01111

environ 8 ans il y a

A résolu


Kepler's Equation
Solve <http://en.wikipedia.org/wiki/Kepler's_equation Kepler's Equation>. Note that the solution is rounded down to 5 decima...

environ 8 ans il y a

A résolu


Integer sequence - 2 : Kolakoski sequence
Get the n-th term of <https://oeis.org/A000002 Kolakoski Sequence>.

environ 8 ans il y a

A résolu


Create a figure and plot data
Given two data vectors (x,y), open a new figure and plot the data. Return the figure handle.

environ 8 ans il y a

A résolu


Set x value to each odd index of vector y.
Set x value to each odd index of vector y.

environ 8 ans il y a

A résolu


Solve the system of linear equations
4x - 2y +6z=8 2x + 8y +2z=4 6x + 10y +3z=0 Input is each coefficient of polynomial. For example, a=[4 ...

environ 8 ans il y a

A résolu


Find two triangular numbers whose sum is input.
Find two triangular numbers whose sum is _input_. Note: The difference beetween the triangular numbers should be minimum.

environ 8 ans il y a

A résolu


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

environ 8 ans il y a

A résolu


Save variables
a=[1] Save variable a that is located in workspace into current folder. File name should be 'a.mat'

environ 8 ans il y a

A résolu


Sum of self power series
The series, 1^1,2^2,3^3,4^4,.... Find the sum of such series when x terms are given.

environ 8 ans il y a

A résolu


N-plicate me
Modified version of duplicate and triplicate me. Repeat elements of input vector with given input n Ex: input = [1 2 3 4 5...

environ 8 ans il y a

A résolu


Calculate solution of given polynomial
For example, y=function([3 -2 -4]) In here, input vector indicate 3*x^2-2*x-4, y is solution of former equation. y=[1.5...

environ 8 ans il y a

A résolu


Sum of logarithms
Given a vector, v, of real positive numbers, compute the sum, s, of the base-10 logarithms of the elements of v, without the use...

environ 8 ans il y a

A résolu


vectors counting by 5
Create a vector with numbers from x_min to x_max in increments of 5.

environ 8 ans il y a

A résolu


Spiral In
Create an m by n matrix filled with sequential integers starting from 1 and arranged in a counterclockwise spiral that hugs the ...

environ 8 ans il y a

A résolu


MPS to MPH
Given the speed in miles per second, find the speed in miles per hour.

environ 8 ans il y a

A résolu


Solve expression I
Solve expression (1+sin(x))/cos(x)+cos(x)/(1+sin(x)) for given vector x.

environ 8 ans il y a

A résolu


How Many Months Until It's Today Again?
Given a particular date, calculate how many months must pass before that same day of the month occurs on the same day of the wee...

environ 8 ans il y a

A résolu


Kinetic Energy
Given mass, m, and kinetic energy, KE, find the velocity of the object.

environ 8 ans il y a

A résolu


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

environ 8 ans il y a

A résolu


Calculate inverse matrix in m by n matrix
x=(1:10)' y=roundn(2*x+7*rand(size(x)),-1) a*x=y Estimate a using inverse matrix calculation. This is principle of li...

environ 8 ans il y a

Charger plus