pankhuri kasliwal
2019년부터 활동
Followers: 0 Following: 0
Feeds
답변 있음
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...
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...
5년 초과 전 | 0
문제를 풀었습니다
Remove white space from the string
Remove the white spaces (trailing and leading) from the input variable
5년 초과 전
문제를 풀었습니다
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
5년 초과 전
문제를 풀었습니다
Divide by 4
Given the variable x as your input, divide it by four and put the result in y.
5년 초과 전
문제를 풀었습니다
find radius of cone
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;
5년 초과 전
답변 있음
handling arrays of strings
Signals= cellstr('Signals'); Signals = [Signals, 'SignalName1']; Signals = [Signals, 'SignalName2']; This way it won't merge ...
handling arrays of strings
Signals= cellstr('Signals'); Signals = [Signals, 'SignalName1']; Signals = [Signals, 'SignalName2']; This way it won't merge ...
5년 초과 전 | 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...
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...
5년 초과 전 | 0
문제를 풀었습니다
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...
5년 초과 전
문제를 풀었습니다
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...
5년 초과 전
문제를 풀었습니다
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...
5년 초과 전
문제를 풀었습니다
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...
5년 초과 전
답변 있음
Display Complete output in Command Window
try this fmt = [repmat('%4d ', 1, size(A,2)-1), '%4d\n']; fprintf(fmt, A.');
Display Complete output in Command Window
try this fmt = [repmat('%4d ', 1, size(A,2)-1), '%4d\n']; fprintf(fmt, A.');
5년 초과 전 | 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); %...
Patch extraction from an image
if you want a patch of (size, size) : % Get the size of the image [rows, columns, numberOfColorChannels] = size(yourImage); %...
5년 초과 전 | 0
| 수락됨
답변 있음
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...
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...
5년 초과 전 | 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...
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...
5년 초과 전 | 0
문제를 풀었습니다
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...
5년 초과 전
문제를 풀었습니다
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...
5년 초과 전
문제를 풀었습니다
The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...
5년 초과 전
문제를 풀었습니다
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...
5년 초과 전
문제를 풀었습니다
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...
5년 초과 전
문제를 풀었습니다
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...
5년 초과 전
문제를 풀었습니다
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...
5년 초과 전
문제를 풀었습니다
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...
5년 초과 전
문제를 풀었습니다
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...
5년 초과 전
문제를 풀었습니다
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 ...
5년 초과 전
문제를 풀었습니다
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...
5년 초과 전
문제를 풀었습니다
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 + ...
5년 초과 전
문제를 풀었습니다
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...
5년 초과 전