已发布


Upgrading One of My Functions to Use an arguments Block and String Arrays
10:13 I’ve upgraded a function that I often use with some features introduced in recent releases of...

3 years 前

Thumbnail

已解决


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

3 years 前

已解决


I Plead the Fifth
Write a function to provide a yes or no answer to the input string. However, it must plead the 5th amendment (return an empty st...

3 years 前

已解决


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the numbers. Otherwise return false. Example...

3 years 前

已解决


Interpolator
You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

3 years 前

已解决


Find the index of n in magic(n)
If input n=5, then magic(n) is 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22...

3 years 前

已解决


Create an index-powered vector
Given a input vector x, return y as index-powered vector as shown below. Example x = [2 3 6 9] then y should be [...

3 years 前

已解决


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

3 years 前

已解决


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

3 years 前

已解决


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

3 years 前

已解决


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

3 years 前

已解决


Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

3 years 前

已解决


Word Counting and Indexing
You are given a list of strings, each being a list of words divided by spaces. Break the strings into words, then return a maste...

3 years 前

已发布


Using a pattern Object To Match URL Strings
12:25 I need to determine which URL strings in a big array match a certain pattern. Here I will use...

3 years 前

Thumbnail

已解决


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

3 years 前

已发布


Intervening to Save a Program Stuck in a Loop
4:57 Here, one of my MATLAB programs appears stuck in a loop. I don’t want to quit it, as I will lose...

3 years 前

Thumbnail

已解决


MATLAB Counter
Write a function f = counter(x0,b) to construct a counter handle f that counts with an initial value x0 and a step size b. E...

3 years 前

已解决


Binary Coder
Take an input number and print the binary value of this number.

3 years 前

已解决


Fix the last element of a cell array
Note: this is lifted directly from <http://www.mathworks.com/matlabcentral/answers/82825-puzzler-for-a-monday Puzzler for a Mond...

3 years 前

已解决


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

3 years 前

已解决


Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

3 years 前

已发布


Investigating an Error in My Check For References Web App
19:31 Debugging and fixing a problem in a MATLAB web app, poses some challenges that you don’t have...

3 years 前

Thumbnail

已发布


Investigating Large Variables After Out of Memory Error
11:58 My code, which was running overnight, has stopped with a rare “out of memory” error. I intend...

3 years 前

Thumbnail

已发布


Updating My Image Size Check Function to Ignore a Class of Images
43:26 I need to update my script which checks that all the images on our web site are smaller than a...

3 years 前

Thumbnail

已发布


Fixing a Bug in My Blog Post Position Code
4:56 The script from my last blog post, which I had set to run daily, has errored-out today, so I need...

3 years 前

Thumbnail

已发布


Determining My Last Post’s Position on the Blogs Index Page
27:26 Sometimes I forget to blog about what I have been doing for a few days, so I want to find a way...

3 years 前

Thumbnail

已发布


Debugging at Point of Error
12:16 One of my MATLAB scripts has failed and is currently stopped at the error point. By having...

3 years 前

Thumbnail

已发布


Using parfor to Make Many Web Requests
47:27 My colleague asked me to access all the pages on a web server in order to populate it’s cache. I...

3 years 前

Thumbnail

已发布


Analyzing Sitemaps
51:43 Today, I want to analyze the sitemaps on mathworks.com. These XML files, in standard locations,...

4 years 前

Thumbnail

已发布


Repurposing Some MATLAB Code to Detect Large Web Images
46:56 I need to find all video thumbnails on our website that are larger than a certain size. I tried...

4 years 前

Thumbnail

加载更多