문제를 풀었습니다


Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

9년 초과 전

문제를 풀었습니다


Solve the Sudoku Row
*Description* A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...

9년 초과 전

문제를 풀었습니다


Basic commands - Where did I install Matlab?
Please make a function, which returns path to Matlab installation folder

9년 초과 전

답변 있음
Orange Color isolate from the image
You can define a set of RGB codes that define "orange" color and then apply image thresholding like this: % Load image from...

9년 초과 전 | 0

문제를 풀었습니다


Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

9년 초과 전

문제를 풀었습니다


Pascal's Triangle
Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...

9년 초과 전

문제를 풀었습니다


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

9년 초과 전

문제를 풀었습니다


Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

9년 초과 전

문제를 풀었습니다


Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

9년 초과 전

문제를 풀었습니다


Circle area using pi
Write a statement that assigns circleArea with the circle's area given circleRadius. Use the built-in mathematical constant pi. ...

9년 초과 전

문제를 풀었습니다


Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

9년 초과 전

문제를 풀었습니다


De-dupe
Remove all the redundant elements in a vector, but keep the first occurrence of each value in its original location. So if a =...

9년 초과 전

문제를 풀었습니다


find the maximum element of the matrix
for e.g x = [1 2; 3 4] y = 4

9년 초과 전

문제를 풀었습니다


Put all numbers in a string inside square brackets
Examples: 'left3down2' -> 'left[3]down[2] 'fiat500' -> 'fiat[500]

9년 초과 전

문제


Put all numbers in a string inside square brackets
Examples: 'left3down2' -> 'left[3]down[2] 'fiat500' -> 'fiat[500]

9년 초과 전 | 3 | 솔버 수: 25

문제


Bracket contents of type {}
Return all bracket contents from a given string ({} type). Example: 'x = rho*x{-1} + (1-rho)*y{+1}' should yield a cell of '-...

9년 초과 전 | 0 | 솔버 수: 32

제출됨


Symbolic derivatives
Computation of symbolic derivatives without the Symbolic Math Toolbox.

9년 초과 전 | 다운로드 수: 1 |

0.0 / 5
Thumbnail

문제를 풀었습니다


Cell of repeated string
Example: From 'asdf' create {'asdf';'asdf';'adsf';'asdf'} if n=4

9년 초과 전

문제를 풀었습니다


Repeat string n times
Example: from 'a' create 'aaaaa' (if n=5)

9년 초과 전

문제를 풀었습니다


Wrap-around effect
In vector x of length n we define (n+1) position as going back to the first position (so called wrap-around effect). Can you ret...

9년 초과 전

문제


Wrap-around effect
In vector x of length n we define (n+1) position as going back to the first position (so called wrap-around effect). Can you ret...

9년 초과 전 | 3 | 솔버 수: 52

답변 있음
how to do differentiation?
If you do not have access to Symbolic Math Toolbox, you may want to use one of my recent FileExchange submissions: <http://ww...

9년 초과 전 | 0

문제를 풀었습니다


Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

9년 초과 전

문제를 풀었습니다


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

9년 초과 전

답변 있음
Problem with solving equation with 'FSOLVE'
To me it appears that the initial conditions to your optimization problem must lie within a specific, perhaps bounded, region. F...

9년 초과 전 | 0

답변 있음
How can I maintain zoom ratio in refreshing plot?
You can assign a user-defined callback function to the zooming tool: figure; plot(1:10); zz = zoom(); set(...

9년 초과 전 | 0

| 수락됨

답변 있음
Rotate the plot at 45 degree
I would simply rotate all data using the planar (2D) transform with respect to the origin: angle = pi/4; reference_line ...

9년 초과 전 | 1

답변 있음
How to insert image in MatLab
imread() can import whole bunch of graphical data types, including .jpg and .png. Conversion to .png, as you ask, is not necessa...

9년 초과 전 | 2

답변 있음
How to setup legend for a figure with two axes (left and right)?
You can create the legend using the handles of your line objects: l1=line('parent',ax(1),'xdata',x,'ydata',y11,'color','b')...

9년 초과 전 | 2

| 수락됨

문제를 풀었습니다


Create a row array using double colon operator
Create a row array from 9 to 1, using the double colon operator.

9년 초과 전

더 보기