Community Profile

# pankhuri kasliwal

Active since 2019

All

#### Content Feed

View by

Error using load Unable to read file No such file or directory.
Check if your file is in the current folder dir your_file_name.mat Sometimes the path problem can happen, in that case use thi...

ungefär 2 år ago | 0

Solved

Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

ungefär 2 år ago

Solved

Remove white space from the string
Remove the white spaces (trailing and leading) from the input variable

ungefär 2 år 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

ungefär 2 år ago

Solved

Find max
Find the maximum value of a given vector or matrix.

ungefär 2 år ago

Solved

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

ungefär 2 år ago

Solved

if Slant height of Cone(I)& hight of Cone(H) given then find radius of the Cone(R) for example I=5,h=4 then the ans R=3;

ungefär 2 år ago

handling arrays of strings
Signals= cellstr('Signals'); Signals = [Signals, 'SignalName1']; Signals = [Signals, 'SignalName2']; This way it won't merge ...

ungefär 2 år ago | 0

How to i extract point clouds from a .mat file?
Hi, Could you please provide the relevant data files, if not then you may try the following links. All these are related to e...

ungefär 2 år ago | 0

Solved

Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

ungefär 2 år ago

Solved

Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

ungefär 2 år ago

Solved

Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

ungefär 2 år ago

Solved

Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

ungefär 2 år ago

Display Complete output in Command Window
try this fmt = [repmat('%4d ', 1, size(A,2)-1), '%4d\n']; fprintf(fmt, A.');

ungefär 2 år ago | 0

Patch extraction from an image
if you want a patch of (size, size) : % Get the size of the image [rows, columns, numberOfColorChannels] = size(yourImage); %...

ungefär 2 år ago | 0

| accepted

Camera Calibration with Two Cameras.
Hi, try first using the detectCheckerboardPoints from matlab for each set of images (check the matlab manual) and then when you...

ungefär 2 år ago | 0

What extension do I use to save my MATLAB file on ATOMS script editor?
you can use emacs and set it to matlab mode, or you can use the matlab online live script editor. https://www.mathworks.com/pro...

ungefär 2 år ago | 0

Solved

Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

ungefär 2 år ago

Solved

Find the two most distant points
Given a collection of points, return the indices of the rows that contain the two points most distant from one another. The inpu...

ungefär 2 år ago

Solved

The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

ungefär 2 år ago

Solved

Indexed Probability Table
This question was inspired by a Stack Overflow question forwarded to me by Matt Simoneau. Given a vector x, make an indexed pro...

ungefär 2 år ago

Solved

Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

ungefär 2 år ago

Solved

Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

ungefär 2 år ago

Solved

Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

ungefär 2 år ago

Solved

Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

ungefär 2 år ago

Solved

Which doors are open?
There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...

ungefär 2 år 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 ...

ungefär 2 år 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...

ungefär 2 år ago

Solved

Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

ungefär 2 år 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...

ungefär 2 år ago