Gelöst


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

fast 13 Jahre vor

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

fast 13 Jahre vor | 5

| akzeptiert

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

fast 13 Jahre vor | 0

| akzeptiert

Frage


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

fast 13 Jahre vor | 4 Antworten | 1

4

Antworten

Gelöst


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

fast 13 Jahre vor

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

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

fast 13 Jahre vor | 0

| akzeptiert

Gelöst


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

fast 13 Jahre vor

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

fast 13 Jahre vor | 1

| akzeptiert

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

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

fast 13 Jahre vor | 0

| akzeptiert

Gelöst


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

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

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

fast 13 Jahre vor | 0

Gelöst


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

fast 13 Jahre vor

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

fast 13 Jahre vor | 2

| akzeptiert

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

fast 13 Jahre vor | 0

| akzeptiert

Mehr laden