
valeria
2024년부터 활동
Followers: 0 Following: 0
Feeds
문제를 풀었습니다
Return unique values without sorting
If the input vector A is [42 1 1], the output value B must be the unique values [42 1] The values of B are in the same order a...
3개월 전
문제를 풀었습니다
Skip by a multiple
Given an integer create an array of its multiples. Array must have a length of 15
3개월 전
문제를 풀었습니다
Convert yards to feet
The goal of this script is to convert a value given in yards to feet.
3개월 전
문제를 풀었습니다
Determine Whether an array is empty
Input a matrix x, output y is TRUE if x is empty, otherwise FALSE.
3개월 전
문제를 풀었습니다
Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...
3개월 전
문제를 풀었습니다
Calculate the average value of the elements in the array
Calculate the average value of the elements in the array
3개월 전
문제를 풀었습니다
Column Removal (★★★)
(copy of prob 7) Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2...
4개월 전
문제를 풀었습니다
Find Rows with Specift Properities
Delete rows with specific properites as following: Find rows that have a negative value in any element of the row and delete it...
4개월 전
문제를 풀었습니다
modular arithmetic
Given three integers a,b and c, find the remainder when a^b is divided by c. Here, a^b will be well beyond the largest 64 bit in...
4개월 전
문제를 풀었습니다
Velocity Conversion
Given a velocity in mph, convert it to km/h. Round the answer to the fourth decimal place.
4개월 전
문제를 풀었습니다
Sort by absolute value
Given a list of numbers, arrange them in ascending order based on their absolute values. For example, for the list [-30, -5, 1...
4개월 전
문제를 풀었습니다
Quote Doubler
Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...
4개월 전
문제를 풀었습니다
Sum of series
a(n) = n^2 - (n-1)^2 find the summation of the series upto n i.e. a(1)+a(2)+...+a(n)
4개월 전
문제를 풀었습니다
Given a matrix, swap the 2nd & 3rd columns
If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...
4개월 전
문제를 풀었습니다
matrix zigzag
Unfold a 2-D matrix to a 1-D array in zig-zag order, e.g., for matrix [ 1 2 3 ; 4 5 6 ; 7 8 9 ] the resulting 1-...
4개월 전
문제를 풀었습니다
Implement a bubble sort technique and output the number of swaps required
A bubble sort technique compares adjacent items and swaps them if they are in the wrong order. This is done recursively until al...
4개월 전
문제를 풀었습니다
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
If p is the perimeter of a right angle triangle with integral length sides, { a, b, c }, there are exactly three solutions for p...
4개월 전
문제를 풀었습니다
Calculate Inner Product
Given two input matrices, x and y, check if their inner dimensions match. If they match, create an output variable z which cont...
4개월 전
문제를 풀었습니다
Crop an Image
A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. An element value re...
4개월 전