Answered
how can i find the three peak points of the histogram..
doc findpeaks if you have the Signal Processing Toolbox. Although you don't say which histogram you are referring to. ...

11 years ago | 1

Answered
I would like to perform the same operation on many images in the same folder stored in C drive of my computer. How to do the same with respect to the code attached ??
s = dir( folder ); folderFiles = s( ~[s.isdir] ); filenames = { filderFiles.name }; will give you a list of filen...

11 years ago | 0

| accepted

Answered
Why does table2struct not produce the inverse of struct2table?
Try using the S = table2struct(T,'ToScalar',true) option as shown on the help page doc table2struct. This sou...

11 years ago | 0

| accepted

Answered
How to adjust image size in GUI
An image must be plotted on an axes. You can place an axes on the panel and then put the image on the axes and it will then rem...

11 years ago | 0

| accepted

Answered
Need some explaining on signal processing terms
1. In the simplest terms a window is a function that is zero everywhere except in a specified range. The window function is th...

11 years ago | 1

| accepted

Answered
Cameraman.tif is an indexed image?
I would assume it is an indexed image in that case and if so you would fully expect changing the colourmap to change the image.

11 years ago | 0

Answered
When you have different values assigned to different strings, how can you use these values in a loop?
Use a struct to hold all the months and something like the following: months = { 'jan', 'feb',...'dec' } monthDays.j...

11 years ago | 1

| accepted

Answered
How to execute only one of multiple redundant matlab functions?
try cprintf('blue', '!! This is a message !!'); catch err disp('!! This is a message !!'); end shoul...

11 years ago | 0

Answered
best practice for multi-selection listbox
Just getting the string property from the list box and applying logical indexing based on the listbox's value seems a perfectly ...

11 years ago | 1

| accepted

Answered
nested function call using inputname crashes matlab
'This command can be used only inside the body of a function.' from the help page for inputname: doc inputname I'm no...

11 years ago | 0

Answered
how to close a waitbar under R2014b ?
hFigures = allchild( groot ); will give you the handles of all figures from which you can find the waitbar as having a tag ...

11 years ago | 1

Answered
How can i get intermediate value from a loglog graph
doc interp1

11 years ago | 0

Answered
how to define string character ?
It creates a string (character array) containing just a single space character.

11 years ago | 0

| accepted

Answered
Matlab .m files, based on GUI, not rendering properly
I suspect the *Position* property of your figure in Guide is set to something that causes it to be positioned off screen in thos...

11 years ago | 0

| accepted

Answered
Inexplicable behavior of SAVE command
Try: save( name ) I think the save name without the parenthesis only works if name is an absolute string, not a ...

11 years ago | 1

Answered
How can I plot only certain values from an array?
a = [1,3,5,7,1,5,1,7,8,1]; idx = find( a == 1 ); figure; hAxes = gca; stem( hAxes, idx, ones(numel(idx)) )...

11 years ago | 0

| accepted

Answered
Display GUIDE GUIs in random order?
Assuming you mean a pushbutton on some separate controlling GUI rather than on the GUI just opened, the the OpeningFcn you can d...

11 years ago | 0

Answered
regexp file path directory help
Couldn't you just use the fileparts function for this? [pathstr,name,ext] = fileparts(filename); if ~strcmpi( ext, '...

11 years ago | 1

| accepted

Answered
pull out number after specific string in txt file
If all lines containing image score have the same format you could use textscan on the *tline* that you extract (or infact just ...

11 years ago | 1

Answered
how to count number of iterations.?
count = 0 newT = zeros(1,100); % Try to presize to something big enough to hold all iterations if you can estimate it ...

11 years ago | 2

| accepted

Answered
looping variable with appended numbers
Use a cell array instead: imgVNIR{1} = ... imgVNIR2{2} = ... imgSWIR{1} = ... imgSWIR{2} = ... Having milli...

11 years ago | 1

| accepted

Answered
How can I concatenate matrices with different dimensions in a cell array to a numeric array?
cell2mat(C); Note though that this will only work if all cells of c contain row arrays as in your example. If there are al...

11 years ago | 0

| accepted

Answered
Dialog box when try to close GUI window
Right click on your main figure in GUIDE and select View Callbacks->CloseRequestFcn. There is an example of what to do inside...

11 years ago | 2

| accepted

Answered
Plot single-sided amplitude spectrum.
That code uses the fft so yes, it is the same thing. The fft is a transform which gives you a complex result spanning negativ...

11 years ago | 3

| accepted

Answered
how i can draw a sector of a circle in matlab?
I don't have time to give complete code and it isn't an area I have much expertise in, but the following example shows how you c...

11 years ago | 1

Answered
how can I save mat files into mat file?
aLoad = load( 'a.mat' ); bLoad = load( 'b.mat' ); save( 'ab.mat', '-struct', 'aLoad' ); save( 'ab.mat', '-struct'...

11 years ago | 0

| accepted

Answered
finding path and timestamp of file used
myFile = java.io.File( filename ); myFile.lastModified myFile.getCanonicalPath

11 years ago | 1

Answered
Trouble with a simple division in my m-file
Rat=( initial ./ dye ) - 1 looks more like what you want I think. I assume you want to divide initial by each number in dy...

11 years ago | 0

Answered
Rescale Depth RGB image between zeros and one?
normImage = single( imageData ) / single( max( imageData(:) ) ); will scale a single image between 0 and 1. If you want ...

11 years ago | 1

| accepted

Answered
Nested For Loops Array Indexing
idx = sub2ind( [6 6 6], i, j, k); D( idx, time ) = ...; will allow you to make best use of indexing into D without o...

11 years ago | 0

| accepted

Load more