Solved


edge detection
write a function that gives the indexes of rising or falling edge x is a vector (assume it contains always at least one eleme...

13 years ago

Answered
Loading in raw image data using the Tiff class: Images return as all zeros, multiple warnings
It looks as if my problems stemmed not from the Matlab code, but from Adobe's DNG converter. The below settings in the DNG conve...

13 years ago | 5

| accepted

Answered
how to sort array of time format from min to max time value?
help sort Example: A = magic(5); sort(A,2) If you want to convert your time data to a numeric representation for...

13 years ago | 0

| accepted

Question


Loading in raw image data using the Tiff class: Images return as all zeros, multiple warnings
I have image data in the Nikon .NEF raw format that I would like to open in MATLAB for some image processing. To accomplish this...

13 years ago | 4 answers | 1

4

answers

Solved


Find last zero for each column
Given a numeric array of arbitrary size, return the row index of the last zero for each column. If a column contains all nonzero...

13 years ago

Answered
Compare values from for loop
It looks like this is resulting from the limited precision of floating point numbers. When you pause the execution of the loop w...

13 years ago | 0

| accepted

Answered
How to clear column and row
What do you mean by "clear"? Do you want to set that value to zero, NaN, etc.? Or remove it entirely? You can remove an entir...

13 years ago | 0

Answered
How to storage the coordinates of a pixel in Gui?
help ginput That function will get the coordinates of the pixel the user clicks. You could have the user press a pushbutton...

13 years ago | 0

| accepted

Answered
Using If and Ifelse to create a variable
The last *else* statement is incorrect. If you use *else* instead of *elseif* you are basically saying "all other conditions not...

13 years ago | 0

| accepted

Answered
Read multiple xls files in a for loop
Is this any better? source_dir = '/Users/student/Documents/MATLAB/RAWS Station Data'; dest_dir = '/Users/student/Documen...

13 years ago | 0

Answered
GUIDE: chains of elements, problem with updating the last one
I would create a "core" function which does the calculation, and then call that core function in the CellEditCallback for both o...

13 years ago | 0

Solved


Eight Queens Solution Checker
Write a function to verify whether an arrangement of queens on a chessboard is a valid solution to the classic <http://en.wikipe...

13 years ago

Solved


Find Index of maximum Value and maximum Value of a vector
Find the Index of the first occurrence of the maximum value in a vector and also the maximum value in the vector. Example: [...

13 years ago

Solved


Find nearest prime number less than input number
Find nearest prime number less than input number . For example: if the input number is 125, then the nearest prime number whi...

13 years ago

Solved


Twins in a Window
<http://en.wikipedia.org/wiki/Twin_primes Twin primes> are prime numbers that differ by 2, such as [11,13] or [41,43]. Write a f...

13 years ago

Answered
Load Button GUI trouble
help uigetfile Put *uigetfile* in the callback of your pushbutton (the code you copy+pasted here). For info on how to speci...

13 years ago | 0

| accepted

Solved


Determine which fields have been modified in a structure
Given two input structures (s1, s2), determine which field values have been modified in s2 compared to s1. Your output should be...

13 years ago

Answered
Find a row of repeated values?
Hi. Sorry for not getting back to your comment on my answer yesterday. Here is how I would do it: First, some random data for...

13 years ago | 1

| accepted

Solved


Now 20% off!
Furloughs are hitting government workers this year. To commemorate getting one unpaid day off each week until the end of Septem...

13 years ago

Solved


N-Cards Problem
You have a deck of _N_ cards numbered in order from 1 to _N_. You discard the top card (card 1) and place the next card (card 2)...

13 years ago

Solved


Happy 2013...
Happy 2013, everyone! An interesting tidbit about 2013 is that it is the first year since 1987 to contain four different digits...

13 years ago

Solved


First non-zero element in each column
For a given matrix, calculate the index of the first non-zero element in each column. Assuming a column with all elements zero ...

13 years ago

Solved


Read a Soroban Abacus
*Description* The Soroban is the name of the modern Japanese abacus. Information on reading a Soroban can be found <http://we...

13 years ago

Answered
How to save Matrices which i created in a "for" loop?
You could create a 3D matrix in order to not lose each value on the next iteration. Just add a third dimension in your indexing:...

13 years ago | 0

| accepted

Solved


Calculate the area of a triangle between three points
Calculate the area of a triangle between three points: P1(X1,Y1) P2(X2,Y2) P3(X3,Y3) these three points are the vert...

13 years ago

Solved


Are you in or are you out?
Given vertices specified by the vectors xv and yv, and a single point specified by the numbers X and Y, return "true" if the poi...

13 years ago

Answered
A(I) = B, the number of elements in B and I must be the same
Assuming the sections of yy that you're assigning to myMarkerCycle are all the same size, try this: for j = 1:num_footstrik...

13 years ago | 0

Solved


N-Queens Checker
Picture a chessboard populated with a number of queens (i.e. pieces that can move like a queen in chess). The board is a matrix,...

13 years ago

Answered
Read mm/dd/yy in Matlab
That data you are reading is being brought in as a date number instead of a date string. The following function allows you to co...

13 years ago | 2

| accepted

Answered
How to detect repetition in data?
Do you only want to identify adjacent points of repitition for your data, or any points that are not unique? If you're wanting t...

13 years ago | 0

| accepted

Load more