Réponse apportée
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. ...

plus de 11 ans il y a | 1

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
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.

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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 ...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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 ...

plus de 11 ans il y a | 1

Réponse apportée
How can i get intermediate value from a loglog graph
doc interp1

plus de 11 ans il y a | 0

Réponse apportée
how to define string character ?
It creates a string (character array) containing just a single space character.

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 11 ans il y a | 1

Réponse apportée
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)) )...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

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

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 11 ans il y a | 1

Réponse apportée
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 ...

plus de 11 ans il y a | 2

| A accepté

Réponse apportée
looping variable with appended numbers
Use a cell array instead: imgVNIR{1} = ... imgVNIR2{2} = ... imgSWIR{1} = ... imgSWIR{2} = ... Having milli...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 3

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 1

Réponse apportée
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'...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
finding path and timestamp of file used
myFile = java.io.File( filename ); myFile.lastModified myFile.getCanonicalPath

plus de 11 ans il y a | 1

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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 ...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Charger plus