Solved


Find the diagonal of the square of side L
You are given a square of side length L, find D the length of its diagonal.

9 years ago

Solved


Get Determinants
Get the determinant of matrix Please have a pride on not using built-in Matlab functions :)

9 years ago

Solved


Convert decimal to hex as shown in test cases
Convert decimal to hex as shown in test cases.

9 years ago

Solved


Lightning strike distance: Writing a function
Write a function named LightningDistance that outputs "distance" given input "seconds". Seconds is the time from seeing lightnin...

9 years ago

Solved


Remove all the consonants
Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...

9 years ago

Solved


radius of a spherical planet
you just measured its surface area, that is the input.

9 years ago

Solved


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

9 years ago

Solved


Pascal's Triangle
Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...

9 years ago

Solved


Pizza value using expression with parentheses
Pizza prices are typically listed by diameter, rather than the more relevant feature of area. Compute a pizza's value (cost per ...

9 years ago

Solved


Create a row array using double colon operator
Create a row array from 9 to 1, using the double colon operator.

9 years ago

Solved


Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

9 years ago

Solved


Fahrenheit to Celsius using multiple statements
Given a Fahrenheit value F, convert to a Celsius value C. While the equation is C = 5/9 * (F - 32), as an exercise use two state...

9 years ago

Solved


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

9 years ago

Solved


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

9 years ago

Solved


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

9 years ago

Problem


Rotate array 90 degrees
Example, A = [1 2 3 ; 4 5 6 ] B = rotated(A) = [ 3 6; 2 5; 1 4 ]

9 years ago | 0 | 159 solvers

Solved


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

9 years ago

Submitted


AvgFilter(x)
Average Filter

9 years ago | 2 downloads |

5.0 / 5

Answered
How to input the image in the following code ? Its giving error that its undefined.
you have to read the image using the imread function.then only your code can process the image data

9 years ago | 1

| accepted

Answered
On ramp wont work
The MATLAB Onramp course is complimentary with your purchase of MATLAB. if your mathworks account is not associated with a lice...

9 years ago | 0

Answered
1st attempt at learning simulink and I'm rewarding with a mess
You have to rename the autosave file before opening it ie, you have to remove .autosave part from the autosave file ..

9 years ago | 0

Answered
Simulink shows blank diagnostic viewer
The only known work-around (not a fix) is to restart MATLAB.

9 years ago | 0

| accepted

Answered
Interest calculation with while
sum=1000 month=0 while sum<1500000 sum=(sum+750)*1.5 month=month+1 end disp(month)

9 years ago | 0

Answered
How can i uncheck the 'Data store name must resolve to Simulink signal object' option?
Two methods are there # Right click on the signal and click on properties option there you get the provision to uncheck the '...

9 years ago | 0

Solved


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

9 years ago

Answered
Matlab jokes or puns
There are 10 types of people in the world, those who understand binary and those who don't.

9 years ago | 1

Solved


Free passes for everyone!
_Simply return the name of the coolest numerical computation software ever_ *Extra reward* (get a _freepass_): As an addit...

10 years ago

Solved


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

10 years ago

Solved


Is my wife right?
Regardless of input, output the string 'yes'.

10 years ago

Solved


What's the missing interior angle?
I'm talking about polygons... The sum of the interior angles of a triangle is 180 degrees. The sum of the interior angles of a...

10 years ago

Load more