解決済み


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.

15日 前

解決済み


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 ...

15日 前

解決済み


Coin distribution
Imagine, u r in a shop. ur bill is n(2200). u want to pay the bill with minimum no of coins u have. u've coins of - 2000,1000...

15日 前

解決済み


Easy Sequences 3: Prime 44-number Squares
The positive integers 62 and 238 are related. Their squares (3844 and 56,644) both end in '44'. In fact, 62 and 238 are the 3rd ...

15日 前

Poll


Do you prefer spaces surrounding equals signs in code?

約2ヶ月 前 | 765 votes | 4 comments

Poll


Where is your preferred column width?

約2ヶ月 前 | 198 votes | 6 comments

Poll


Which programming case do you prefer (for MATLAB code)?

約2ヶ月 前 | 802 votes | 3 comments

解決済み


find the nth fibonacci number
The Fibonacci sequence is defined as follows: give n, find the nth fibonacci number

3ヶ月 前

解決済み


Easy Sequences 2: Trigonometric function with integral input and output
The function 'F', defined as: , will always return an integer if the input is a natural number (in radian...

4ヶ月 前

解決済み


Easy Sequences 1: Find the index of an element
The nth element of a series is defined by: . Obviously, the first element . Given the nth element , find the value of the corre...

4ヶ月 前

解決済み


5-year Annedversaries
This is the Bonus Round problem for the 2025 Cody Contest. Attend the watch party on Friday, March 27 to see how 6 champions fro...

5ヶ月 前

解決済み


Sieve of Eratosthenes - 02
"Sift the Two's and Sift the Three's, The Sieve of Eratosthenes. When the multiples sublime, The numbers that remain a...

6ヶ月 前

解決済み


Simulate full-stop emergency braking scenario.
Emergency braking events demand rapid deceleration to bring the vehicle safely to rest. Given initial vehicle speed and constant...

6ヶ月 前

解決済み


Compute optimal front–rear brake force distribution.
Modern braking systems dynamically distribute braking forces between front and rear axles to maintain stability, reduce stopping...

6ヶ月 前

解決済み


Compute wheel slip ratio during braking.
During braking, a difference develops between the vehicle’s forward speed and the rotational speed of its wheels. This differenc...

6ヶ月 前

解決済み


Diagonal Cross Mandala
Generate an N×N matrix with diagonals highlighted to form an artistic X-shaped mandala pattern. e.g. N = 5; 1 0 0...

6ヶ月 前

解決済み


Plus Cross Mandala
Create a symmetrical plus (+) shaped pattern centered in an N×N matrix.

6ヶ月 前

解決済み


Barnes G-Function
Evaluate the Barnes G-Function at a given (integral) value. %Example 1 in = 1; out = 1; %Example 1 in = 4; out = 2; ...

6ヶ月 前

解決済み


Compute optimal regenerative and friction brake torque blending.
Electric and hybrid vehicles combine regenerative braking with traditional friction braking to maximize energy recovery while en...

6ヶ月 前

解決済み


[Mảng 1 Chiều Cơ Bản]. Bài 1. Chẵn lẻ
Cho mảng số nguyên A[] gồm N phần tử, nhiệm vụ của bạn là đếm xem trong mảng có bao nhiêu số chẵn, bao nhiêu số lẻ, tổng các phầ...

6ヶ月 前

解決済み


[Mảng 1 Chiều Cơ Bản]. Bài 4. Lớn hơn, nhỏ hơn
Cho mảng số nguyên A[] gồm N phần tử và số nguyên X , hãy đếm xem trong mảng có bao nhiêu số lớn hơn X và bao nhiêu số nhỏ hơn X...

6ヶ月 前

解決済み


Find record values in a sequence
Write a function to find the record values in a sequence—that is, the largest values seen since the start. For example, if the s...

6ヶ月 前

解決済み


Estimate brake disc temperature rise during braking.
During braking, kinetic energy is converted into thermal energy, causing brake discs to heat up. Excessive temperature rise can ...

6ヶ月 前

解決済み


Estimate dynamic load transfer to front axle during braking.
During braking, load shifts from the rear axle to the front axle. Given mass, deceleration, center of gravity height, and wheelb...

6ヶ月 前

解決済み


Compute the required brake torque at wheel to stop the car
Brake torque defines how effectively braking force translates into wheel deceleration. Given braking force and wheel radius, det...

6ヶ月 前

解決済み


Compute vehicle stopping distance using initial speed and constant deceleration.
Given vehicle speed v (m/s) and constant deceleration a (m/s²), compute stopping distance Remember: d = v² / (2a)

6ヶ月 前

解決済み


Estimate brake line pressure required for a given force.
Hydraulic braking systems amplify pedal input to generate braking force. Given braking force and piston area, compute the hydrau...

6ヶ月 前

解決済み


Compute braking force using vehicle mass and acceleration.
Compute braking force required to stop a vehicle of mass 'm' and with acceleration 'a' Remember: F = m × a.

6ヶ月 前

解決済み


Clueless - Lord Ned in the Game Room with the Technical Computing Language
[Warning: this is a nontrivial programming problem] Worried about the decline in reasoning skills in the clueless populace of...

8ヶ月 前

さらに読み込む