Risolto


Return the first and last characters of a character array
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

3 giorni fa

Risolto


Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

3 giorni fa

Risolto


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

3 giorni fa

Risolto


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

3 giorni fa

Risolto


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

3 giorni fa

Risolto


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

3 giorni fa

Risolto


Calculate Current in a Series Circuit Using KVL
Kirchhoff's Voltage Law (KVL) states that the sum of voltages around a closed loop is zero. Given a voltage source (V) and three...

3 giorni fa

Risolto


Calculating the Total Resistance in a Series Circuit
Description: In a series circuit, the total resistance is the sum of the individual resistances. This problem asks you to write ...

4 giorni fa

Risolto


Basic Physics X
Calculate the Kinetic Energy (KE) by Weight (w), Distanec (d), and Time (t) without Mass (m) or Speed (v).

4 giorni fa

Risolto


Basic Physics VIII
Calculate the Mechanical Energy (ME) when the point is B.

4 giorni fa

Risolto


Basic Physics VI
Fing the Kinetic Energy (KE) by Distance (d) and Time (t) instead of Speed (v).

4 giorni fa

Risolto


Basic Physics V
Calculate the Weight (w).

4 giorni fa

Risolto


Basic Physics IV
Calculate the Work.

4 giorni fa

Risolto


Basic Physics III
Calculate the Potential Energy (PE).

4 giorni fa

Risolto


Basic Physics II
Get the Kinetic Energy (KE).

4 giorni fa

Risolto


Basic Physics I
Calculate the energy by the famous formula of Albert Einstein.

4 giorni fa

Risolto


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the numbers. Otherwise return false. Example...

4 giorni fa

Risolto


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

4 giorni fa

Risolto


Estimating Monthly Electricity Cost for a Household Appliance
You recently bought an electric kettle for your kitchen, and you want to estimate how much it costs to run every month. The kett...

16 giorni fa

Risolto


Simple Electrical Power Calculation
Calculate the electrical power using the formula: P=V×I where: V is the voltage (in volts) I is the current (in amperes)

16 giorni fa

Risolto


Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.

16 giorni fa

Risolto


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

16 giorni fa

Risolto


Pizza!
Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.] Non-scored bonus...

16 giorni fa

Risolto


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

16 giorni fa

Risolto


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

16 giorni fa

Risolto


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

16 giorni fa

Risolto


Create a vector
Create a vector from 0 to n by intervals of 2.

16 giorni fa

Risolto


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not to use d...

16 giorni fa

Risolto


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

16 giorni fa

Risolto


Find max
Find the maximum value of a given vector or matrix.

16 giorni fa

Carica altro