Community Profile

# Shubham Gupta

Last seen: 2 Monate vor Aktiv seit 2017

#### Statistics

All

Abzeichen anzeigen

#### Content Feed

Anzeigen nach

Gelöst

Text processing - Help Johnny write a letter home from camp
Johnny overuses the word 'great'. Write a script that will help him with this and future letters. If a sentence contains more ...

fast 2 Jahre vor

Gelöst

Use R2016b Text Manipulations to Fix These Addresses (Part 3)
We have a series of addresses like the following which we'd like to reformat. Each of the addresses lacks a space and a comma ...

fast 2 Jahre vor

Gelöst

Use R2016b Text Manipulations to Fix These Addresses (Part 2)
We have a series of addresses like the following which we'd like to reformat. All the addresses are in the Boston area of Mass...

fast 2 Jahre vor

Gelöst

Use R2016b Text Manipulations to Fix These Addresses (Part 1)
We have a series of addresses like the following which we'd like to reformat. Can you remove the latitude and longitude from the...

fast 2 Jahre vor

Beantwortet
Optimizing for loops by searching some data in cell arrays
I tried cellfun() to get the desired output without using for loops: x = cellfun(@(c)c(find(c==t_interpl(t_ref_cnt))+size(c,1))...

etwa 2 Jahre vor | 1

Beantwortet
how to plot to my m file
To plot a function, you can use: fplot() link: fplot

etwa 2 Jahre vor | 0

Gelöst

surrounded matrix
With a given matrix A (size m x n) create a matrix B (size m+2 x n+2) so that the matrix A is surrounded by ones: A = [1 2 ...

etwa 2 Jahre vor

Gelöst

Flip the main diagonal of a matrix
Given a n x n matrix, M, flip its main diagonal. Example: >> M=magic(5); >> flipDiagonal(M) 9 24 1 ...

etwa 2 Jahre vor

Gelöst

Make an awesome ramp for a tiny motorcycle stuntman
Okay, given a vector, say v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 3 6 9 11 0; 6 9 ...

etwa 2 Jahre vor

Gelöst

Back to basics 23 - Triangular matrix
Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix, return a matrix with all elements above a...

etwa 2 Jahre vor

Gelöst

Back to basics 21 - Matrix replicating
Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix, generate an output matrix that consists o...

etwa 2 Jahre vor

Gelöst

Remove NaN ?
input -> matrix (n*m) with at least one element equal to NaN; output -> matrix(p*m), the same matrix where we deleted the enti...

etwa 2 Jahre vor

Gelöst

Remove the air bubbles
Given a matrix a, return a matrix b in which all the zeros have "bubbled" to the top. That is, any zeros in a given column shoul...

etwa 2 Jahre vor

Gelöst

Find the palindrome
Given the string a, find the longest palindromic sub-string b. So when a = 'xkayakyy'; you should return b = 'kayak';

etwa 2 Jahre vor

Gelöst

DNA N-Gram Distribution
Given a string s and a number n, find the most frequently occurring n-gram in the string, where the n-grams can begin at any poi...

etwa 2 Jahre vor

Gelöst

Mandelbrot Numbers
The <http://en.wikipedia.org/wiki/Mandelbrot_set Mandelbrot Set> is built around a simple iterative equation. z(1) = c z...

etwa 2 Jahre vor

Gelöst

Remove the small words from a list of words.
Your job is to tidy up a list of words that appear in a string. The words are separated by one or more spaces. Remove all words ...

etwa 2 Jahre vor

Gelöst

Prime factor digits
Consider the following number system. Calculate the prime factorization for each number n, then represent the prime factors in a...

etwa 2 Jahre vor

Gelöst

Longest Divisor Run
Given the vector a, find the longest run of consecutive numbers that can be evenly divided by the same number d where d > 1. ...

etwa 2 Jahre vor

Gelöst

Remove the polynomials that have positive real elements of their roots.
The characteristic equation for a dynamic system is a polynomial whose roots indicate its behavior. If any of the <http://www.ma...

etwa 2 Jahre vor

Gelöst

Renaming a field in a structure array
MATLAB has a <http://www.mathworks.com/help/techdoc/ref/setfield.html setfield> and a <http://www.mathworks.com/help/techdoc/ref...

etwa 2 Jahre vor

Gelöst

Get the area codes from a list of phone numbers
Given a string of text with phone numbers in it, return a unique'd cell array of strings that are the area codes. s = '508-6...

etwa 2 Jahre vor

Gelöst

It dseon't mettar waht oedrr the lrettes in a wrod are.
An internet meme from 2003 (read more <http://www.snopes.com/language/apocryph/cambridge.asp here>) asserted that readers are re...

etwa 2 Jahre vor

Gelöst

Find state names that start with the letter N
Given a list of US states, remove all the states that start with the letter N. If s1 = 'Alabama Montana Nebraska Vermont Ne...

etwa 2 Jahre vor

Gelöst

Connect Four Win Checker
<http://en.wikipedia.org/wiki/Connect_Four Connect Four> is a game where you try to get four pieces in a row. For this problem, ...

etwa 2 Jahre vor

Gelöst

Calculate the Levenshtein distance between two strings
This problem description is lifted from <http://en.wikipedia.org/wiki/Levenshtein_distance>. The Levenshtein distance betwee...

etwa 2 Jahre vor

Gelöst

Given two strings, find the maximum overlap
Given two strings s1 and s2, create a new string s3 which is as short as possible and contains both strings. If s1 = [1 2...

etwa 2 Jahre vor

Gelöst

Counting in Finnish
Sort a vector of single digit whole numbers alphabetically by their name, in Finnish. See the Wikipedia page for <http://en.wik...

etwa 2 Jahre vor

Frage

Function browser is empty
In MATLAB command window, one should be able to access Function Browser to quickly see the syntax for a particular function. To ...

mehr als 2 Jahre vor | 0 Antworten | 0

### 0

Antworten

Beantwortet
Datenum with a.m. and p.m.
Assuming there is ".m. EST" attached to each "timestamp" at the end. You can follow the steps: Step-1 Replace ".m. EST" to just...

etwa 3 Jahre vor | 1

| akzeptiert