
Armando Longobardi
2021년부터 활동
Followers: 0 Following: 0
Mechanical engineer
Programming Languages:
MATLAB
Spoken Languages:
English, Italian
MATLAB
Spoken Languages:
English, Italian
Feeds
문제를 풀었습니다
Specific toolboxes
Given a string that is the name of a MATLAB toolbox, return true if it is available on the Cody solvers evaluation system, false...
13일 전
문제를 풀었습니다
Circumscribed circles
Given the lengths of the 3 sides of a triangle, output the radius of the circumscribed circle. Example: [3 4 5] -> 2.5
13일 전
문제를 풀었습니다
Woodall number
Test whether the input is a Woodall number: <http://en.wikipedia.org/wiki/Woodall_number> _Please do not cheat by simply chec...
13일 전
문제를 풀었습니다
Lambert's W
Matlab cody does not support lambertw. Try to create a lambert's w function yourself. Lambert's W is the function that solves...
13일 전
문제를 풀었습니다
newRMS
find root mean square of a signal x in less time than the test code and accurate to six places.
13일 전
문제를 풀었습니다
Implement a ROT13 cipher
Replace each character in string s1 with the character that is shifted 13 positions from it (wrap back to the beginning if neces...
13일 전
문제를 풀었습니다
Special matrix
Make a square matrix with this shape. For n=4 M = 1 1 0 0 1 0 1 0 0 1 0 ...
13일 전
문제를 풀었습니다
Hard limit function
Classify x data as if x>=0 then y=1 if x<0 then y=0 Example x = [ -2 -1 0 1 2] y = [ 0 0 1 1 1]
13일 전
문제를 풀었습니다
Related Vectors
I have two vectors A & B. If the values in vector A is zero then the corresponding value in vector B should be zero. Example:...
13일 전
문제를 풀었습니다
Binary
Given a positive, integer n, create a function that returns the respective binary number in the form of a vector. Example: ...
13일 전
문제를 풀었습니다
Sum the real and imaginary parts of a complex number
Sum the real and imaginary parts of a complex number. Example c = 1+2i has the solution 1 + 2 = 3
13일 전
문제를 풀었습니다
Number of odd and even elements within matrix
Input(m) - any matrix with integers Output(n) - n(1)=number of odd elements, n(2)=number of even elements Example: * m=...
13일 전
문제를 풀었습니다
Matrix rotation as per given angle
Given a user defined matrix and angle of rotation, rotate the elements of output matrix as clockwise or anti-clockwise. Angle wi...
13일 전
문제를 풀었습니다
Polynomial Multiplication
Multiply two polynomial equation.Given polynomial coefficients a and b.
13일 전
문제를 풀었습니다
Hofstadter Q sequence
The Hofstadter Q sequence is defined as follows: The first elements of the sequence are 1, 1, 2, 3, 3, 4, 5, 5, 6, 6. Write ...
13일 전
문제를 풀었습니다
Remove Unique Elements
Given a list of integers, we want to keep only the non-unique elements in this list. To do this, we need to remove all the uniqu...
13일 전
문제를 풀었습니다
Sort by absolute value
Given a list of numbers, arrange them in ascending order based on their absolute values. For example, for the list [-30, -5, 1...
13일 전
문제를 풀었습니다
Find the largest sum of any contiguous subarray
Given an array of N integers, find the contiguous subarray (which must contain at least one number) with the maximum sum and ret...
13일 전
문제를 풀었습니다
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...
15일 전
문제를 풀었습니다
Voltage Divider Calculation
A voltage divider is a simple circuit used to obtain a reduced voltage from a higher voltage source using two resistors in serie...
15일 전
문제를 풀었습니다
LED Current Calculation
In an electrical circuit, the current (III) flowing through an LED is determined using Ohm’s Law: Where: I is the current ...
15일 전
문제를 풀었습니다
Inductor Energy Storage Calculation
The energy (EEE) stored in an inductor is given by the formula: Where: E is the energy in joules (J) L is the inductance in...
15일 전
문제를 풀었습니다
Calculate Charge Using Capacitance and Voltage
The charge (Q) stored in a capacitor is given by the formula:Q=C×V where: C is the capacitance (in farads) V is the voltage (...
15일 전
문제를 풀었습니다
Energy Stored in a Capacitor
The energy (E) stored in a capacitor is given by the formula: where: C is the capacitance (in farads) V is the voltage (in ...
15일 전
문제를 풀었습니다
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...
15일 전
문제를 풀었습니다
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 ...
15일 전
문제를 풀었습니다
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)
15일 전