解決済み


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

約14年 前

解決済み


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

約14年 前

解決済み


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

約14年 前

解決済み


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

約14年 前

解決済み


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

約14年 前

解決済み


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

約14年 前

解決済み


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

約14年 前

回答済み
Separating the channels of a .wav sound file
If the .wav file is a stereo audio file, then <http://www.mathworks.com/help/techdoc/ref/wavread.html |wavread|> can read them i...

約14年 前 | 1

| 採用済み

回答済み
Memory
That's the theoretical limit that MATLAB can access on your 64-bit system, which is independent of how much RAM and Swap you hav...

約14年 前 | 1

解決済み


Clean the List of Names
Given a list of names in a cell array, remove any duplications that result from different capitalizations of the same string. So...

約14年 前

解決済み


Find common elements in matrix rows
Given a matrix, find all elements that exist in every row. For example, given A = 1 2 3 5 9 2 5 9 3 2 5 9 ...

約14年 前

解決済み


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

約14年 前

解決済み


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

約14年 前

解決済み


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

約14年 前

回答済み
Last non nan observation
I'm not sure if you're looking for the indices (row number) or the actual value of the last non nan observation. So here are bot...

約14年 前 | 4

| 採用済み

回答済み
Why use x=load('myFile.mat')?
You may actually get an incorrect answer in certain situations. For example, create a MAT file, myFile.mat, that has a variab...

約14年 前 | 5

| 採用済み

公開済み


Looking Back: 2011 in Review
Having recently wrapped up another great year for the File Exchange (a year in which we saw the number of...

約14年 前

Thumbnail

回答済み
Coloring scatterplots based on frequency of point occurrence in input
*EDIT: |unique| instead of |sort|* You should be able to do it with: |unique| (use the 'rows' parameter) |hist| (use th...

約14年 前 | 4

| 採用済み

公開済み


Finding the best distribution that fits the data
Jiro's pick this week is allfitdist by Mike Sheppard. As an application engineer, I go out and deliver...

約14年 前

Thumbnail

回答済み
Plot using scatter3 function.
Is this what you're looking for? x = rand(1,24); y = rand(1,24); z = rand(1,24); sz = 40; colors = jet(24); ...

約14年 前 | 1

解決済み


Return the 'Size' of a String of Code
One of the most 'mysterious' parts of playing Cody is the sizing system. Given a string of commands, return the size that Cody w...

約14年 前

公開済み


Units Conversion Toolbox
Brett's Pick this week is Units Conversion Toolbox, by John McDermid. Once, a long time ago, I was a real...

約14年 前

Thumbnail

解決済み


wait for me
wait exactly x seconds please, need not be more than 2 seconds but must be accurate within say 50 milliseconds, your function mu...

約14年 前

解決済み


Is my wife right?
Regardless of input, output the string 'yes'.

約14年 前

公開済み


A non-engineer tinkers with Simulink
Greg's pick this week is A non-engineer tinkers with Simulink by Dimitri Shvorob. Contents ...

約14年 前

Thumbnail

解決済み


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

約14年 前

解決済み


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

約14年 前

解決済み


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

約14年 前

解決済み


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

約14年 前

解決済み


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

約14年 前

さらに読み込む