Community Profile

photo

Samiha Shimla


Active since 2018

Followers: 0   Following: 0

Statistics

All
  • Thankful Level 2
  • Thankful Level 1
  • Solver

View badges

Feeds

View by

Solved


Reverse the Words (not letters) of a String
*Description* Change the words of a string such that the words appear in reverse order. You may assume that the string is a n...

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

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

5 years ago

Solved


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

5 years ago

Solved


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

5 years ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

5 years ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

5 years ago

Question


Flipping specific segment of string rather than the whole string
If I have a string str='One two buckle my shoe' how can I flip it to look as follows? strM='enO owt elkcub ym eohs' I have ...

5 years ago | 3 answers | 0

3

answers

Question


Capitalizing every word in a string
str='The bottom of the deep blue sea' strN='The Bottom Of The Deep Blue Sea' To convert the string 'str' to 'strN' is used: ...

5 years ago | 1 answer | 0

1

answer

Question


How do I loop inside a loop for a random walk? How to store values inside the loop?
I have attached the file that contains the original question. I have already mapped a 1-d random walk of 1000 steps. Now I need ...

5 years ago | 1 answer | 0

1

answer

Question


How do I plot a 1-d random walk that generate 1 and -1 with equal probability? I am struggling to plot every individual P that I get against i the number of step.
P=0; % Starting value for i=1:10 % i is the number of steps from 1 to 10 R=rand; if R<0.5 S=-1; elseif R>0.5 ...

5 years ago | 1 answer | 0

1

answer

Solved


Side of an equilateral triangle
If an equilateral triangle has area A, then what is the length of each of its sides, x? <<http://upload.wikimedia.org/wikipe...

5 years ago

Solved


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

5 years ago

Solved


Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

5 years ago

Solved


Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x. <<http://upload.wikimedia.org/wikipedia/commons/e/e0/Equilateral-tr...

5 years ago

Solved


Convert Fahrenheit to Celsius
Calculate the Celsius temperature C given the Fahrenheit temperature F. Examples: Input F = 90 Output C is 32.22 I...

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

5 years ago

Solved


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

5 years ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

5 years ago