Resuelto


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

casi 13 años hace

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

casi 13 años hace | 5

| aceptada

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

casi 13 años hace | 0

| aceptada

Pregunta


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

casi 13 años hace | 4 respuestas | 1

4

respuestas

Resuelto


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

casi 13 años hace

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

casi 13 años hace | 0

| aceptada

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

casi 13 años hace | 0

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

casi 13 años hace | 0

| aceptada

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

casi 13 años hace | 0

| aceptada

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

casi 13 años hace | 0

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

casi 13 años hace | 0

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

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

casi 13 años hace | 0

| aceptada

Resuelto


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

casi 13 años hace

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

casi 13 años hace | 1

| aceptada

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

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

casi 13 años hace | 0

| aceptada

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

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

casi 13 años hace | 0

Resuelto


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

casi 13 años hace

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

casi 13 años hace | 2

| aceptada

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

casi 13 años hace | 0

| aceptada

Cargar más