문제를 풀었습니다


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

대략 10년 전

질문


Opening saved figures created using plotyy
I created some figures using plate and saved them as .fig files. Now, I'd like to modify the figures slightly, but they don't re...

거의 11년 전 | 답변 수: 1 | 0

1

답변

질문


read data from variables with names matching patterns
A student of mine saved a .mat file containing variables named x1, x2, ..., x50, y1, y2, etc. How can I write program that will...

11년 초과 전 | 답변 수: 1 | 0

1

답변

질문


error running mex on mac c-code
I'm trying to use a little bit of c-code in matlab. I'm running Matlab 2013B on OS X 10.8 and have Xcode 5.0. To figure this ou...

대략 12년 전 | 답변 수: 0 | 1

0

답변

문제를 풀었습니다


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

대략 13년 전

문제를 풀었습니다


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

대략 13년 전

문제를 풀었습니다


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

대략 13년 전

문제를 풀었습니다


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

대략 13년 전

문제를 풀었습니다


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

대략 13년 전

문제를 풀었습니다


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

대략 13년 전

질문


Getting Mac Menubar in the right spot in 2012B
I just installed 2012B on a Mac, running Lion. I know that Matlab can now put its menus in the proper place in the mac menu bar,...

13년 초과 전 | 답변 수: 1 | 0

1

답변

질문


mlint across multiple functions in separate files
I use mlint a lot. I think it operates only on a single file. Suppose I have two functions foo.m which calls bar.m. I'd like ...

14년 초과 전 | 답변 수: 2 | 0

2

답변