統計
All
Feeds
解決済み
Calculate supply voltage and total current
Three resistors are connected in series and each has a resistance in ohms. Resistor R2 has a voltage drop of ΔV2volts Find the ...
19日 前
解決済み
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...
19日 前
解決済み
Calculate Parallel Resistance
Three resistors connected in parallel have resistances R1, R 2, and R 3, respectively. Return the total resistance R total of ...
19日 前
解決済み
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...
19日 前
回答済み
I need a program to check prime numbers
n = 17; % Change the number to test if n <= 1 disp('Not a Prime Number'); else prime = 1; for i = 2:sqrt(n...
I need a program to check prime numbers
n = 17; % Change the number to test if n <= 1 disp('Not a Prime Number'); else prime = 1; for i = 2:sqrt(n...
24日 前 | 0
回答済み
n th Fibonacci number with function
function fib = fibonacciSeries(N) fib = zeros(1,N); if N >= 1 fib(1) = 0; end if N >= 2 ...
n th Fibonacci number with function
function fib = fibonacciSeries(N) fib = zeros(1,N); if N >= 1 fib(1) = 0; end if N >= 2 ...
24日 前 | 0
回答済み
how can I count the number of elements on a vector?
v = [-5, 10, 0, 8, -2, 15, -7]; count = 0; for i = 1:length(v) if v(i) > 0 count = count + 1; end end ...
how can I count the number of elements on a vector?
v = [-5, 10, 0, 8, -2, 15, -7]; count = 0; for i = 1:length(v) if v(i) > 0 count = count + 1; end end ...
24日 前 | 0
回答済み
how do i reverse a vector
v = [10, 20, 30, 40, 50]; n = length(v); for i = 1:n rev(i) = v(n - i + 1); end disp('Reversed vector:'); disp(r...
how do i reverse a vector
v = [10, 20, 30, 40, 50]; n = length(v); for i = 1:n rev(i) = v(n - i + 1); end disp('Reversed vector:'); disp(r...
24日 前 | 0
回答済み
how to sum all elements of one vector?
v = [10, 20, 30, 40, 50]; sumValue = 0; for i = 1:length(v) sumValue = sumValue + v(i); end disp(['Sum of all ele...
how to sum all elements of one vector?
v = [10, 20, 30, 40, 50]; sumValue = 0; for i = 1:length(v) sumValue = sumValue + v(i); end disp(['Sum of all ele...
24日 前 | 0
回答済み
How to return the maximum value of a vector without using the built in function max(x)?
v = [12, 45, 7, 89, 34, 56]; largest = v(1); for i = 2:length(v) if v(i) > largest largest = v(i); end ...
How to return the maximum value of a vector without using the built in function max(x)?
v = [12, 45, 7, 89, 34, 56]; largest = v(1); for i = 2:length(v) if v(i) > largest largest = v(i); end ...
24日 前 | 0
回答済み
Odd and even numbers
function evenOdd(n) if mod(n,2) == 0 disp('The number is Even'); else disp('The number is Odd'); ...
Odd and even numbers
function evenOdd(n) if mod(n,2) == 0 disp('The number is Even'); else disp('The number is Odd'); ...
24日 前 | 0
回答済み
Write a function to calculate the area of a circle
function area = circleArea(r) area = pi * r^2; end
Write a function to calculate the area of a circle
function area = circleArea(r) area = pi * r^2; end
24日 前 | 0

