Vismay Raj
2019년부터 활동
Followers: 0 Following: 0
Feeds
문제를 풀었습니다
Quote Doubler
Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...
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년 초과 전
문제를 풀었습니다
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년 초과 전
문제를 풀었습니다
Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...
5년 초과 전
문제를 풀었습니다
Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...
5년 초과 전
문제를 풀었습니다
Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...
5년 초과 전
문제를 풀었습니다
Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...
5년 초과 전
문제를 풀었습니다
Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...
5년 초과 전
문제를 풀었습니다
Pangrams!
A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once. Example: Input s ...
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년 초과 전
답변 있음
how can I get the html elements from javascript code?
I belive what you are trying to do is web scrapping then this tutorial might be helpfull to you
how can I get the html elements from javascript code?
I belive what you are trying to do is web scrapping then this tutorial might be helpfull to you
5년 초과 전 | 0
답변 있음
read in the .csv file with ddMMyyyy HHmm data
you can read the file line by line as string https://www.mathworks.com/help/matlab/ref/fgets.html once it is read then A(1:2) w...
read in the .csv file with ddMMyyyy HHmm data
you can read the file line by line as string https://www.mathworks.com/help/matlab/ref/fgets.html once it is read then A(1:2) w...
5년 초과 전 | 0
| 수락됨
답변 있음
Connecting database 'MySQL' without using database toolbox
this page explains it very well
Connecting database 'MySQL' without using database toolbox
this page explains it very well
5년 초과 전 | 0
답변 있음
fing barcode from a DNA Sequence
Maybe what you are looking for can be achieved through substrings this link can be helpfull
fing barcode from a DNA Sequence
Maybe what you are looking for can be achieved through substrings this link can be helpfull
5년 초과 전 | 0
답변 있음
Plot a single vector as a line
assuming that you want to draw a vector starting from (0,0,0) and to the specified point the following code can be used v = [-2...
Plot a single vector as a line
assuming that you want to draw a vector starting from (0,0,0) and to the specified point the following code can be used v = [-2...
5년 초과 전 | 0
| 수락됨
답변 있음
Interpolation of matrices corresponding to time vector
this function might be useful https://www.mathworks.com/help/matlab/ref/interpn.html
Interpolation of matrices corresponding to time vector
this function might be useful https://www.mathworks.com/help/matlab/ref/interpn.html
5년 초과 전 | 0
답변 있음
Does there exist something in Matlab that skips or returns to a point, when the value of the index does exceed the matrix dimensions?
trty this link about try catch : https://www.mathworks.com/help/matlab/ref/try.html
Does there exist something in Matlab that skips or returns to a point, when the value of the index does exceed the matrix dimensions?
trty this link about try catch : https://www.mathworks.com/help/matlab/ref/try.html
5년 초과 전 | 0
답변 있음
How to trim a text file with start and end line numbers
read the file using filetext = fileread('file.txt') split the text on newline and store the array of lines in a new variable ...
How to trim a text file with start and end line numbers
read the file using filetext = fileread('file.txt') split the text on newline and store the array of lines in a new variable ...
5년 초과 전 | 0
| 수락됨
답변 있음
finding same values in the same place in different columns
Not the right way but gets the job done, assuming the vectors are A and B ANSWER = ((A+B) == 2) + ((A+B) == 0) the brackets ar...
finding same values in the same place in different columns
Not the right way but gets the job done, assuming the vectors are A and B ANSWER = ((A+B) == 2) + ((A+B) == 0) the brackets ar...
5년 초과 전 | 0
| 수락됨
답변 있음
How to Insert New Image in Video as first frame?
Read the video using videoObj = mmreader(FileName); video = videoObj.read(); % the nth frame is accessed by video(:,:,:,n) R...
How to Insert New Image in Video as first frame?
Read the video using videoObj = mmreader(FileName); video = videoObj.read(); % the nth frame is accessed by video(:,:,:,n) R...
5년 초과 전 | 0
문제를 풀었습니다
The Goldbach Conjecture, Part 2
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...
5년 초과 전
문제를 풀었습니다
Scrabble Scores
Given a word, determine its score in <http://en.wikipedia.org/wiki/Scrabble Scrabble>. The input string will always be provi...
5년 초과 전
문제를 풀었습니다
Elapsed Time
Given two date strings d1 and d2 of the form yyyy/mm/dd HH:MM:SS (assume hours HH is in 24 hour mode), determine how much time, ...
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년 초과 전
문제를 풀었습니다
Kaprekar Steps
6174 is the <http://en.wikipedia.org/wiki/6174_%28number%29 Kaprekar constant>. All natural numbers less than 10,000 (except som...
5년 초과 전
문제를 풀었습니다
Pattern matching
Given a matrix, m-by-n, find all the rows that have the same "increase, decrease, or stay same" pattern going across the columns...
5년 초과 전
문제를 풀었습니다
Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...
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년 초과 전
문제를 풀었습니다
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년 초과 전
문제를 풀었습니다
Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...
5년 초과 전