Feeds
解決済み
MATLAB 101: Lucas Sequence
The Lucas sequence follows the same additive rule as Fibonacci, but starts with 2 and 1. Sequence: 2, 1, 3, 4, 7, 11, 18, 29, 47...
6日 前
解決済み
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 ...
6日 前
解決済み
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...
6日 前
解決済み
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...
6日 前
解決済み
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...
6日 前
解決済み
Problem Set 2
Make a calculator by the four main operators (op): + - * / And the two numbers (n1, n2). Don't forget to check to divisio...
約1ヶ月 前
解決済み
Turning radius of a vehicle
The turning radius represents the radius of the circular path followed by a vehicle. Given Wheelbase L and Steering angle δ, Co...
約1ヶ月 前
解決済み
Double the 2x2 Matrix
In this challenge, you are given a predefined 2x2 matrix called x. Your task is to multiply every element in this matrix by 2 an...
約1ヶ月 前
解決済み
Replace All Below-Average Elements in a Matrix with Zero
Given a 2D matrix of numbers, find the mean of all elements. Replace any element that is strictly below the mean with 0. Return ...
約1ヶ月 前
解決済み
Triangle Area Using Heron's Formula
Given the three side lengths a, b, and c of a triangle, calculate its area using Heron's formula and round to 4 decimal places. ...
約1ヶ月 前
解決済み
Reverse the characters of a string
Given a string, return the string with characters in reverse order. Example: rev_string('hello') returns 'olleh'
約1ヶ月 前
解決済み
Sum the main diagonal of a matrix
Given a square matrix, return the sum of its main diagonal elements. Example: diag_sum([1 2 3; 4 5 6; 7 8 9]) returns 15
約1ヶ月 前
解決済み
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
約1ヶ月 前
解決済み
Convert Celsius temperature to Fahrenheit
Given a temperature in Celsius, return the equivalent in Fahrenheit. Formula: F = C * 9/5 + 32Example: cel2fahr(100) returns 212...
約1ヶ月 前
解決済み
Get The Square Root Of Number Power (^) Three
Get the Square Root of number Power (^) Three.
約1ヶ月 前
解決済み
Count how many elements are above the mean
Given a vector, return the count of elements strictly greater than the mean of the vector. Example: above_mean_count([1 2 3 4 5]...
約1ヶ月 前
解決済み
Basic Algebra I
You should solve the problem 3X - 2 = 7 by finding the value of X. You must use this array/vector [2 3 7]. GOOD LUCK!
約1ヶ月 前
解決済み
Basic Algebra II
You have the equation X^2 = n you should find the value of X. GOOD LUCK!
約1ヶ月 前











