photo

Sidhi


Last seen: 1 day ago Active since 2024

Followers: 1   Following: 1

Statistics

All
  • Solver
  • Thankful Level 1

View badges

Feeds

View by

Solved


Find the palindrome
Given the string a, find the longest palindromic sub-string b. So when a = 'xkayakyy'; you should return b = 'kayak';

2 months ago

Solved


Remove all the words that end with "ain"
Given the string s1, return the string s2 with the target characters removed. For example, given s1 = 'the main event' your ...

2 months ago

Solved


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

2 months ago

Solved


Return area of square
Side of square=input=a Area=output=b

2 months ago

Solved


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

2 months ago

Solved


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

2 months ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

2 months ago

Solved


Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to find the logical indices o...

4 months ago

Solved


Return fibonacci sequence do not use loop and condition
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: ...

4 months ago

Solved


Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.

4 months ago

Solved


Determine the square root
Determine the square root of the value the user has entered, n.

4 months ago

Solved


Pizza!
Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.] Non-scored bonus...

4 months ago

Question


Is it possible to load the input data from base workspace to the inports in the simulink model without enabling the external input in configuration parameters?
When working with Simulink models, it is often necessary to input data from external sources for simulation purposes. Typically,...

4 months ago | 2 answers | 1

2

answers