Resuelto


Compute the nth Pythagorean prime
Pythagorean primes have the form p = 4n+1, where n is an integer, and they can be written as the sum of squares of two integers....

8 días hace

Resuelto


List the Moran numbers
The quotient of a Moran number and its digit sum is prime. For example, 117 and 481 are Moran numbers because 117/(1+1+7) is 13 ...

9 días hace

Resuelto


Measure the hydraulic conductivity with a constant-head permeameter
A constant-head permeameter is a device for measuring the hydraulic conductivity of a soil sample. In this problem the sample i...

9 días hace

Poll


How often do you use AI tools to help with writing MATLAB code?

14 días hace | 505 votes | 8 comments

Resuelto


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

20 días hace

Resuelto


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

20 días hace

Resuelto


MATLAB 101: Multinacci Sequence Generator
Create a function that generates a sequence of length n based on the sum of the previous l terms. If l = 2, it acts like the Fi...

20 días hace

Resuelto


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

20 días hace

Resuelto


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

20 días hace

Resuelto


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

20 días hace

Resuelto


MATLAB 101: List Manipulation: Add and Remove
Create a MATLAB function that performs dynamic list operations on a cell array of strings. The function should accept the curren...

20 días hace

Resuelto


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

20 días hace

Resuelto


MATLAB 101: University Department Data Analyzer
You are given an array containing the number of students in various academic departments of a university, along with a parallel ...

20 días hace

Resuelto


MATLAB 101: Extracting Even/Odd Values
Given an array or a matrix, extract all elements that satisfy a specified parity condition ('even' or 'odd') and return them as ...

20 días hace

Resuelto


MATLAB 101: Student Marks Analyzer
An array is given that contains the marks received by a group of students in their class test. Write a function that processes t...

20 días hace

Resuelto


MATLAB 101: Equivalent Resistance Calculator
Calculate the equivalent resistance R_eq for n resistors connected in Series or Parallel.

20 días hace

Resuelto


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

20 días hace

Resuelto


MATLAB 101: Wye to Delta Impedance Converter
n electrical network analysis, transforming a Wye (Y) configuration of impedances (Z1, Z2, Z3) into an equivalent Delta (Delta) ...

20 días hace

Resuelto


MATLAB 101: Delta to Wye Impedance Converter
In electrical network analysis, transforming a delta (Delta) configuration of components into a wye (Y) configuration is vital f...

20 días hace

Resuelto


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

20 días hace

Resuelto


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

20 días hace

Resuelto


MATLAB 101: Rectangle Properties
Write a MATLAB function that accepts the length (L) and width (W) of a rectangle and returns two outputs: its area and its perim...

20 días hace

Resuelto


MATLAB 101: Area of an ellipse
Write a MATLAB function that accepts these two values a (major axis length), b (minor axis length) as inputs and returns the cal...

20 días hace

Resuelto


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.

20 días hace

Resuelto


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

20 días hace

Resuelto


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

20 días hace

Resuelto


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

20 días hace

Poll


Do you prefer spaces surrounding equals signs in code?

2 meses hace | 765 votes | 4 comments

Poll


Where is your preferred column width?

2 meses hace | 198 votes | 7 comments

Poll


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

2 meses hace | 802 votes | 3 comments

Cargar más