Feeds
문제를 풀었습니다
Palindrome String
Determine if the inputted string is a palindrome. That is, the string is the same forwards as it is backwards. For example: ...
대략 19시간 전
문제를 풀었습니다
Matrix symmetry
Given a matrix A = [1 2 3; 4 5 6] Flip it horizontally and vertically to obtain a complete reversal of both rows and columns. ...
대략 20시간 전
문제를 풀었습니다
Matrix Rotation
Write a MATLAB function that rotates a given matrix by 90 degrees clockwise. The rotation should be performed in-place, without ...
대략 20시간 전
문제를 풀었습니다
factorial_calc(n)
Write a MATLAB function called factorial_calc(n) that takes a positive integer n as input and calculates the factorial of n. The...
대략 20시간 전
문제를 풀었습니다
Getting values from a vector
This exercise is for finding the values that meet your criteria. a = [-5 28 7 83 73]; b = 23 ; c = (a > b) Then : c = ...
2일 전
문제를 풀었습니다
Do Fast Fourier Transformation
Example Fast Fourier Transformation from vector [2,1]) ans = 3 1
2일 전
문제를 풀었습니다
Compound Interest: Present Value
Theorem : Compound Interest where, F : Future value at the end of n periods P : Present value r : Annual nominal rate n :...
2일 전
문제를 풀었습니다
Add Even and Subtract Odd Numbers in an Array
For an input array, add all the even values and subtract the odd values. This final value is the output. E.g. input = [1 2 3 4...
3일 전
문제를 풀었습니다
Perfect Square
Determine if the input is a perfect square (square of an integer) or not. Example - If input is 25(==5^2), return 1. If input...
3일 전
문제를 풀었습니다
Array Height (no usage of size)
Find the array height, the number of rows. Size may not be used.
3일 전
문제를 풀었습니다
Implement zero-based indexing for Matrices
Given an input vector and position (which is zero based) output the value Example: x = [1 2; 4 5] pos = [0 1] value = 5 ...
4일 전
문제를 풀었습니다
Find the surface area of a cone.
For instance, Given r (radius) = 3, and s (slant height) = 5: surface area should be 94.
4일 전
문제를 풀었습니다
Solve expression II
Solve given expression. alpha=0.1(-x-y-50)/(exp((-x-y-50)/10)-1) beta=5exp((-x+y-60)/20) result=alpha+beta;
4일 전
문제를 풀었습니다
Solve expression III
Solve expression for given vector x. Expression = (tan(2*x^2+7*x-30.25)+log(x^3-2.25))/(nthroot(sin(x^3)^2+1/5*log(x^4-2.5),3))...
4일 전
문제를 풀었습니다
Hemisphere Volume on Top of a Cylinder
This MATLAB function has to calculate the volume of a hemisphere placed on top of a cylinder, given valid inputs. It takes the r...
4일 전
문제를 풀었습니다
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...
10일 전
문제를 풀었습니다
Ohm’s Law - Calculate Resistance
Ohm’s Law states that resistance R can be calculated as:R=V/I where: V is the voltage (in volts) I is the current (in ampere...
10일 전
문제를 풀었습니다
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...
11일 전
문제를 풀었습니다
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 ...
11일 전
문제를 풀었습니다
Compute optimal front–rear brake force distribution.
Modern braking systems dynamically distribute braking forces between front and rear axles to maintain stability, reduce stopping...
11일 전
문제를 풀었습니다
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...
11일 전
문제를 풀었습니다
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...
11일 전
문제를 풀었습니다
No Fives Permitted
Create a function that gives users an custom error message if the matrix A contains a five. The error message should say "No Fiv...
12일 전
문제를 풀었습니다
[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...
13일 전
문제를 풀었습니다
Return the sum of all even numbers in a vector
Write a function that takes a vector of integers and returns the sum of all even numbers.
13일 전










