Community Profile

# Swati

##### Last seen: 1 jour ago
209 total contributions since 2019

Getting addicted to MATLAB Cody! Having a great time here since I've discovered Cody! :)

Professional Interest: Mathematics, Coding, Image processing using MATLAB, Power Electronics Converter Design

View details...

Contributions in
View by

Solved

Back to basics 6 - Column Vector
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector, output true or false whether it is a colu...

14 jours ago

Solved

Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

14 jours ago

Solved

Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

16 jours ago

Solved

Unit Matrix
Given n, you should return an n-by-n unit matrix. Example: If input is n=2 then A = [ 1 0 0 1 ] If input ...

16 jours ago

Solved

Sum the 'edge' values of a matrix
Sum the 'edge' values of an input matrix (the values along the perimeter). Example [1 2 3 4 5 6 7 8 9] Output = ...

16 jours ago

Solved

Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

16 jours ago

Solved

Area of an Isoceles Triangle
An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<https://imgur...

16 jours ago

Solved

Temperature Conversion 3

17 jours ago

Solved

Temperature Conversion 2

17 jours ago

Solved

Temperature Conversion 1

17 jours ago

Solved

Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

17 jours ago

Solved

Number of digits in an integer
Specifies how many digits in a given integer. Example: in=100 ==> out=3

17 jours ago

Solved

Generate this matrix
For a given odd integer n, generate a matrix as follows: Input: n = 5; Output: [ 2 1 0 0 0 1 ...

17 jours ago

Solved

Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

17 jours ago

Solved

Fibonacci-Sum of Squares
Given the Fibonacci sequence defined by the following recursive relation, * F(n) = F(n-1) + F(n-2) * where F(1) = 1 and F(1)...

17 jours ago

Solved

Love triangles
Given a vector of lengths [a b c], determines whether a triangle with non-zero area (in two-dimensional Euclidean space, smarty!...

17 jours ago

Solved

Derivative of polynomial
Compute the derivative of a given polynomial. The input is an <http://www.mathworks.com/help/matlab/math/representing-polynomial...

17 jours ago

Solved

Matlab Basics - Pick out parts of a vector
Consider x a vector of length >= 7 (there are at least 7 elements in the vector, write a script that extracts the 2nd element, a...

17 jours ago

Solved

Polynomial Multiplication
Multiply two polynomial equation.Given polynomial coefficients a and b.

17 jours ago

Solved

Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

17 jours ago

Solved

kmph to mps
convert kilometer per hour to meter per second

17 jours ago

Solved

Find a Pythagorean triple
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

18 jours ago

Solved

You just measured its surface area, that is the input.

18 jours ago

Solved

Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

18 jours ago

Solved

Evaluating a polynomial
Given the following polynomial and the value for x, determine y. y = 3x^5 – x^3 + 8x – 3 Example x = 1 y = 3 - 1 +...

18 jours ago

Solved

Side of a rhombus
If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<https://imgur.com/x6hT6mm.png>> ...

18 jours ago

Solved

Convert a vector into a number
This is a sub problem related to this problem: <http://www.mathworks.com/matlabcentral/cody/problems/621-cryptomath-addition>...

18 jours ago

Solved

Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.

18 jours ago

Solved

Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

18 jours ago

Solved

Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

19 jours ago