Total resistance of resistors in parallel
What is the total resistance of a number of resistors in parallel?
A vector R contains the resistances (in Ohm) of n resistors,...
4年弱 前
解決済み
Total resistance of resistors in series
What is the total resistance of a number of resistors in series?
A vector R contains the resistances (in Ohm) of n resistors, w...
Nth root of a number
Given an input and a number N, find the Nth root of the number(s)
約5年 前
解決済み
Find the binary code
Given a sinusoidal signal, create a function that returns the binary code of a quantized value. The function takes the bit lengt...
Reverse the Matrix
Given a Matrix A, reverse it. Such that, last element of A becomes 1st and vice versa.
for example:
Input = [1 2 3;4 5 ...
約5年 前
解決済み
Calculate correlation.
There are two data.
y1=[0 1 2 3 4]'
y2=[2 3 4 5 6]'
We can see positive relationship between y1 and y2. The relations...
約5年 前
解決済み
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...
約5年 前
解決済み
angle in regular polygon
Make a function which returns measure of interior angle in x-side regular polygon. x is as input.
Please pay attention, that 1 ...
約5年 前
解決済み
Find hen's weight.
If hen weights x kilos on two legs, how much does it weights on one leg? Output the result.
約5年 前
解決済み
Find the product of a Vector
How would you find the product of the vector [1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0] times 2?;
x = [1 : 0.5 : 6];
y ...
Words Count: A String Array Approach
Given an input character vector consisting of words, punctuation marks, white spaces, and possibly newline characters (\n), arra...