Answered
How can I plot time-frequency plot of a time series data
If you have the Signal Processing Toolbox doc spectrogram There are numerous arguments to the function, but they will de...

10 years ago | 0

Answered
How big is MATLAB?
My R2015b folder is ~4 GB. This includes ~6 toolboxes. Depending how many and which ones you have they could vary a lot in s...

10 years ago | 0

Answered
[DISCONTINUED] MATLAB Answers Wish-list #4 (and bug reports)
This seems to have been something that changed in the last few days. Why has the 'Home' link on Matlab Answers suddenly changed...

10 years ago | 1

Answered
full width at half maximum
Have you defined maxY somewhere? An empty matrix is not an error, it just means that the find operation did not find any elem...

10 years ago | 0

| accepted

Answered
How to stop processing futher code when a condition is met
Just put the condition at an appropriate place in your loop where you want to do the test: if F(k-1) <= 0 disp( 'the ...

10 years ago | 0

Answered
is there any option for ginput() function?
doc ginput tells you everything there is to know about ginput, which does not really have any options. I use <http://ww...

10 years ago | 0

Answered
Normalization of a signal to a particular value
a = a / sqrt( sum( a.^2 ) ); is what I would have thought would give the normalised signal for power 1 (L2-norm). So ...

10 years ago | 1

| accepted

Answered
Guidance on Closing a "GUIDE" Gui
I would recommend putting any checks in a function that itself opens the GUI then you simply don't even attempt to open the GUI ...

10 years ago | 1

| accepted

Answered
How to create EXE file from GUI using Matlab coder?
Matlab Coder does not support GUI code as far as I am aware. It wouldn't really make sense since the GUI is Matlab-based and C+...

10 years ago | 0

Answered
How can I lock my repositioned colorbar to the rest of my figure?
set( c, 'units', 'normalized' ) after you have positioned it in points if that is your preferred method is the usual way to...

10 years ago | 1

| accepted

Answered
how to start coding data?
doc textscan contains numerous examples

10 years ago | 0

Answered
assigning images to appdata and checking if exists
isappdata(h,name) should work for this, h being 0 in your case I guess, name being 'pic'. As an aside, I don't use appda...

10 years ago | 1

| accepted

Answered
Undefined variable or function 'v'.
t = 1:10; v = 17; dv = second_order_circuit(t,v); is an example of what you need on command line, although I have...

10 years ago | 0

Answered
Extracting element form a table of data
If by 'table', you mean an array: result = myArray( 2:4, 2:4 ); will read, for example, the 2nd to 4th rows and 2nd to 4...

10 years ago | 0

Answered
How does a MATLAB generated binary knows its fullpath?
[~, result] = system('path'); currentDir = char(regexpi(result, 'Path=(.*?);', 'tokens', 'once')); is what we have in ...

10 years ago | 0

Answered
Automatically upload a folder of files into a listBox
get(handles.check_Folder , 'Value') == true will not work as you want. A checkbox value is a double so you would need to d...

10 years ago | 0

Answered
Do I need a 'For' statement or a 'While' statement to loop back in my script?
Something like this should work though I haven't tested it in actual code: isvalid = false; while( ~isval...

10 years ago | 1

| accepted

Answered
how to identify the sampling rate of signal with unknown sampling rate
Do you know the range of the values in the signal? e.g. minimum and maximum time. If not then you simply don't have enough inf...

10 years ago | 0

| accepted

Answered
How to load data from structure with user input
You need to use dynamic string syntax for accessing structure fields - e.g. subs = s.( filename ); that way 'filename' c...

10 years ago | 1

Answered
Impoly to choose all the ROI
mask = createMask( hROI, hIm ); should give you a binary mask for the region, where hROI is your impoly and hIm is the hand...

10 years ago | 0

| accepted

Answered
How to store execution time in execution time in runtime
tic ...some code... t = toc; will store the time in 't'. Then you can do whatever you want with it from there.

10 years ago | 1

| accepted

Answered
plot a discrete signal
stem(x(1:20)) will plot the first 20 samples of x, assuming it has that many. Or stem(x(345:364)) etc, to plot som...

10 years ago | 0

| accepted

Answered
What in the world is going on with my loop? Matlab getting hang up?
It would help if you format your code, but from what I see you have a while loop on the condition e > 0.001 yet the body...

10 years ago | 0

Answered
how to save values in array or in .mat file by ascending order?
j = sort( j ); save( 'j.mat', j ); In your example they would already be in ascending order though.

10 years ago | 0

| accepted

Answered
How to determine number of common elements between two vectors?
numel( intersect( X, Y ) )

10 years ago | 2

| accepted

Answered
Calculating mean in array
cellfun( @(x) mean(x(:,2)), myArray ) should work, assuming you mean you have a cell array which is the only type of array ...

10 years ago | 2

| accepted

Answered
Read in Cell Array that contains cell arrays from a File.
What kind of file are you talking about? The only type of files I am aware of that can store cell arrays are .mat files. From ...

10 years ago | 0

Answered
validateattributes() - content of a cell
I think it would be better to move the cellfun outside the validateattributes - i.e. have the validateattributes as the function...

10 years ago | 0

| accepted

Answered
Set Column and Row visibility in uitable
Not with pure Matlab. The level of customisation of uitable is very limited using only Matlab functionality. It may be possibl...

10 years ago | 0

Answered
plot graph to GUI from m-file
The first argument to plot is either an axes handle or the x data. I'm not sure why your original code works, to be honest, as ...

10 years ago | 0

Load more