Statistica
0 Problemi
26 Soluzioni
RANK
N/A
of 302.311
REPUTAZIONE
N/A
CONTRIBUTI
0 Domande
0 Risposte
ACCETTAZIONE DELLE RISPOSTE
0.00%
VOTI RICEVUTI
0
CONTRIBUTI
0 Post
CONTRIBUTI
0 Pubblico Canali
VALUTAZIONE MEDIA
CONTRIBUTI
0 Punti principali
NUMERO MEDIO DI LIKE
Feeds
Risolto
MATLAB 101: Hypotenuse Calculator
Write a MATLAB function that accepts the base and height of a right-angled triangle (or arrays of bases and heights) and returns...
circa un mese fa
Risolto
MATLAB 101: Given a matrix X, manipulate it accordingly
Given a matrix X, 1st add a column to the matrix whose elements are the summation of each rows. Then add a row to the matrix who...
circa un mese fa
Risolto
MATLAB 101: Conditional Product or Sum Calculator
Write a MATLAB function that accepts two integer numbers. If the product of the two numbers is less than or equal to 1000, retur...
circa un mese fa
Risolto
MATLAB 101: Count the Evens
Write a MATLAB function that accepts an array of integers and returns the total count of even numbers present in the array. Note...
circa un mese fa
Risolto
MATLAB 101: Tribonacci Sequence
Each number in the Tribonacci series is the sum of the three preceding ones. Sequence: 0, 0, 1, 1, 2, 4, 7, 13, 24, 44, ... Writ...
circa un mese fa
Risolto
MATLAB 101: Basic Calculator
Write a MATLAB function named basic_calculator that accepts two input numbers, A and B, and returns four distinct outputs: The ...
circa un mese fa
Risolto
MATLAB 101: Scalar-Vector Multiplication
Write a MATLAB function that takes a numeric array (vector or matrix) v and a scalar multiplier s. The function should return a ...
circa un mese fa
Risolto
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.
circa un mese fa
Risolto
MATLAB 101: Replace Negatives with Zero
Write a MATLAB function that takes a numeric array (vector or matrix) of numbers and replaces all negative numbers with zero. Po...
circa un mese fa
Risolto
MATLAB 101: Extract the prime numbers
Given a list of elements, extract the prime numbers from that array.
circa un mese fa
Risolto
MATLAB 101: Fibonacci Sequence
The Fibonacci sequence is defined by the rule that each number is the sum of the two preceding ones. Sequence: 0, 1, 1, 2, 3, 5,...
3 mesi fa
Risolto
Count the vowels in a string
Given a string, return the number of vowels (a, e, i, o, u — case insensitive). Example: count_vowels('Hello World') returns 3
3 mesi fa
Risolto
the average value of the elements
Calculate the average value of the elements in the array
3 mesi fa
Risolto
Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...
3 mesi fa
Risolto
Determine if a number is prime
Given a positive integer n, return 1 if it is prime, 0 otherwise. Example: is_prime(7) returns 1, is_prime(4) returns 0
3 mesi fa
Risolto
Bit Reversal
Given an unsigned integer _x_, convert it to binary with _n_ bits, reverse the order of the bits, and convert it back to an inte...
3 mesi fa
Risolto
Generate Tribonacci Sequence
The "Tribonacci" sequence is an extension of the idea of the Fibonacci sequence: That is, each new term is the sum of the thr...
3 mesi fa
Risolto
MATLAB 101: Factorial Finder
The factorial of a non-negative integer n (denoted as n!) is the product of all positive integers less than or equal to n. For e...
3 mesi fa
Risolto
Fuel-Air Equivalence Ratio (Lambda)
Lambda (λ) is the ratio of actual air-fuel ratio to the stoichiometric air-fuel ratio. λ = 1 is perfect stoichiometry, λ < 1...
3 mesi fa
Risolto
Engine Displacement
Engine displacement is the total swept volume of all cylinders. It is determined by bore (cylinder diameter), stroke (piston t...
3 mesi fa
Risolto
Engine torque and RPM
Torque and power are related through rotational speed. Knowing brake power and engine RPM, you can back-calculate the torque del...
3 mesi fa
Risolto
Engine Thermal Efficiency
The thermal efficiency of an ideal Otto cycle engine depends only on the compression ratio. A higher compression ratio yields gr...
3 mesi fa
Risolto
Gray code
Given a decimal number, convert it to its corresponding Gray code (see https://en.wikipedia.org/wiki/Gray_code). 8 -- 1100...
3 mesi fa
Risolto
2D - Mean Filter
Assume you are given an "image" matrix of size NxM. Reduce the image noise by implementing a mean filter window of size 9 (a 3x3...
3 mesi fa
Risolto
Convert a grayscale image into RGB colour format, preserving data type
In the Image Processing Toolbox, MATLAB provides rgb2gray to convert a 3 channel color image into a 1 channel intensity...
3 mesi fa
Risolto
MATLAB 101: Reverse a Vector
Write a MATLAB function that takes a 1D vector (either a row or a column vector) and returns the vector with its elements in exa...
3 mesi fa
