統計
All
Feeds
解決済み
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...
2日 前
解決済み
Calculate Parallel Resistance
Three resistors connected in parallel have resistances R1, R 2, and R 3, respectively. Return the total resistance R total of ...
2日 前
解決済み
Resistance in a circuit
Two resistors with values of 6.0 ohms and 12 ohms are connected in parallel. This combination is connected in series with a 4 o...
2日 前
解決済み
Find out sum and carry of Binary adder
Find out sum and carry of a binary adder if previous carry is given with two bits (x and y) for addition. Examples Previo...
3日 前
解決済み
Convert from Base 10 to base 5
Convert the input number from base 10 into base 5: for example: if a(in base 10)= 5 then a(in base 5)= 10
3日 前
解決済み
Convert Hexavigesimal to Decimal
NASA (Ned’s Alien-Spying Agency) have made contact with a 13-fingered race from the planet Genai. Naturally, Ned’s shadowy opera...
3日 前
解決済み
Program an exclusive OR operation with logical operators
Program an exclusive or operation *without* using the MATLAB function xor. Use logical operators like |, &, ~, ... instead. ...
3日 前
解決済み
Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...
6日 前
解決済み
Calculate the average value of the elements in the array
Calculate the average value of the elements in the array
6日 前
解決済み
Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.
6日 前
解決済み
Transpose the Matrix
Transpose the given matrix, e.g. x=[a b;c d] transpose of x = [a c;b d]
6日 前
解決済み
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]
6日 前
解決済み
Sum all elements of a vector or matrix without using sum()
Write a function that computes the sum of all elements of the input array v without using the built-in sum function. The input ...
6日 前
解決済み
MATLAB 101: Area of a circle
Write a MATLAB function named circle_area that accepts the radius r as an input and returns the area of the circle.
6日 前
回答済み
How many positive entries in array
function count = positiveEntries(arr) count = sum(arr > 0); end
How many positive entries in array
function count = positiveEntries(arr) count = sum(arr > 0); end
23日 前 | 0
回答済み
Write a function to calculate the area of a circle
function area = circleArea(radius) area = pi * radius^2; end
Write a function to calculate the area of a circle
function area = circleArea(radius) area = pi * radius^2; end
23日 前 | 0
回答済み
Write a MATLAB function that returns the square of a number.
function sqr=sqr(x) sqr=x^2; end
Write a MATLAB function that returns the square of a number.
function sqr=sqr(x) sqr=x^2; end
23日 前 | 0

