Publicado


Adding Another Column to a Table in my Web App
17:14 Here I am going to try and add an additional column to a table in my web app. Its been more than...

más de 3 años hace

Thumbnail

Resuelto


Find relatively common elements in matrix rows
You want to find all elements that exist in greater than 50% of the rows in the matrix. For example, given A = 1 2 3 5 ...

casi 4 años hace

Publicado


Refactoring Some of My Code into a Local Function
10:36 Here I try to move a chunk of code into a local function, so I can re-use it multiple times,...

casi 4 años hace

Thumbnail

Resuelto


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

casi 4 años hace

Publicado


Renaming a Function in a MATLAB Project
8:12 Here I want to rename one of my functions. Traditionally, this would involve manually updating...

casi 4 años hace

Thumbnail

Resuelto


subtract central cross
Given an n-by-n square matrix, where n is an odd number, return the matrix without the central row and the central column.

casi 4 años hace

Publicado


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

casi 4 años hace

Thumbnail

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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.

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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.

casi 4 años hace

Resuelto


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]

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Publicado


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

casi 4 años hace

Thumbnail

Resuelto


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

casi 4 años hace

Publicado


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

alrededor de 4 años hace

Thumbnail

Resuelto


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

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Publicado


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

alrededor de 4 años hace

Thumbnail

Publicado


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

alrededor de 4 años hace

Thumbnail

Publicado


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

alrededor de 4 años hace

Thumbnail

Cargar más