답변 있음
saving png with the correct format (legend)
Also, check out any screenshot mfiles, most will figure out the position of the figure if you give it the figure handle. They wi...

거의 13년 전 | 0

답변 있음
Is it possible to change a double with exonents so no exp or decimal?
OK, I would absolutely leave it as a string until it is finished parsing! The 1.9861e+13 still represents all values by the ...

거의 13년 전 | 1

| 수락됨

답변 있음
How do I take the derivative of my plot?
Call polyfit to generate your polynomial (if you don't already have a polynomial) Call polyder to get derivative of your fit...

거의 13년 전 | 2

질문


Switch Command Screen tabs at top through the command line
Let's say, I create a shortcut to change the directory and run some initialization files, is there any easy way to change the ta...

거의 13년 전 | 답변 수: 0 | 0

0

답변

문제를 풀었습니다


Spiral Matrix
for a given integer n>=3, generate a matrix of nxn such that the value n^2 is at bottom left and its decreasing towards center ...

거의 13년 전

문제를 풀었습니다


Generate a NaN...on purpose
The goal is to create a function that will return a single "NaN" without using the nan function. I am interested to see how many...

거의 13년 전

질문


Stretch quadrilateral ROI to pre-definded rectangle size
Lets say I have a quadrilateral ROI in my image roughly resembling a rectangle. I want to take this ROI and turn the correspondi...

거의 13년 전 | 답변 수: 1 | 1

1

답변

답변 있음
convert gray image back to rgb
Alternatively rgb=img(:,:,[1 1 1]); does the same thing as Jan's, but is a little shorter maybe and easier to remember. img ...

거의 13년 전 | 5

답변 있음
how to plot 3d using coordinates
line([x1 x2],[y1 y2],[z1 z2]) and you can put as many points as you want in each vector obviously

거의 13년 전 | 1

답변 있음
Change variable name on each iteration in for loop MATLAB
If you changed the name, you would be making a new variable every time and I am not sure it is even possible to do this like you...

거의 13년 전 | 0

| 수락됨

답변 있음
Extraction of images from video: why images are missed?
Also, I would do obj.FrameRate to see if it really is 2, this seems much more likely than a number not showing up in a vector.

거의 13년 전 | 0

답변 있음
How to create a database of images and thus, how to compare a query image to those that are there in the database?
And a cell array can't hurt either. If you are looking to see how close an image matches up, try taking a look at normxcorr2, it...

거의 13년 전 | 0

질문


rgb2ind equivalent for grayscale images - NOT gray2ind because its not the same, at all.
So I love that rgb2ind finds the best matching colors for the number of colors that you want and that you have the option of no ...

거의 13년 전 | 답변 수: 2 | 0

2

답변

답변 있음
Is there a good way to avoid junking up code with lots of preallocation lines?
You can assign the same value to multiple fields if you want, which I think would help in this case.

거의 13년 전 | 0

문제를 풀었습니다


Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

거의 13년 전

문제를 풀었습니다


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

거의 13년 전

문제를 풀었습니다


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

거의 13년 전

문제를 풀었습니다


Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

거의 13년 전

문제를 풀었습니다


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

거의 13년 전

문제를 풀었습니다


Is the paranthesis sequence balanced ?
Quantum mechanics and computer science are interested in <http://en.wikipedia.org/wiki/Bra%E2%80%93ket_notation bra-kets>. Today...

거의 13년 전

문제를 풀었습니다


Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

거의 13년 전

문제를 풀었습니다


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

거의 13년 전

문제를 풀었습니다


Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

거의 13년 전

문제를 풀었습니다


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

거의 13년 전

문제를 풀었습니다


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

거의 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년 전

문제를 풀었습니다


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

거의 13년 전

문제를 풀었습니다


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

거의 13년 전

문제를 풀었습니다


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

거의 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년 전

더 보기