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

casi 11 años hace | 0

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

casi 11 años hace | 0

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

casi 11 años hace | 1

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 0

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

casi 11 años hace | 0

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

casi 11 años hace | 1

| aceptada

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

casi 11 años hace | 1

| aceptada

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

casi 11 años hace | 0

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

casi 11 años hace | 1

| aceptada

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

casi 11 años hace | 0

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

casi 11 años hace | 1

| aceptada

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

casi 11 años hace | 0

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

casi 11 años hace | 0

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

casi 11 años hace | 0

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

casi 11 años hace | 0

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

casi 11 años hace | 1

| aceptada

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 1

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 1

| aceptada

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 0

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 2

| aceptada

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

casi 11 años hace | 2

| aceptada

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

casi 11 años hace | 0

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

casi 11 años hace | 0

| aceptada

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

casi 11 años hace | 0

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

casi 11 años hace | 0

Cargar más