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

presque 11 ans il y a | 0

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

presque 11 ans il y a | 0

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

presque 11 ans il y a | 1

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

presque 11 ans il y a | 0

| A accepté

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

presque 11 ans il y a | 0

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

presque 11 ans il y a | 0

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

presque 11 ans il y a | 1

| A accepté

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

presque 11 ans il y a | 1

| A accepté

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

presque 11 ans il y a | 0

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

presque 11 ans il y a | 1

| A accepté

Réponse apportée
how to start coding data?
doc textscan contains numerous examples

presque 11 ans il y a | 0

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

presque 11 ans il y a | 1

| A accepté

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

presque 11 ans il y a | 0

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

presque 11 ans il y a | 0

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

presque 11 ans il y a | 0

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

presque 11 ans il y a | 0

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

presque 11 ans il y a | 1

| A accepté

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

presque 11 ans il y a | 0

| A accepté

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

presque 11 ans il y a | 1

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

presque 11 ans il y a | 0

| A accepté

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

presque 11 ans il y a | 1

| A accepté

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

presque 11 ans il y a | 0

| A accepté

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

presque 11 ans il y a | 0

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

presque 11 ans il y a | 0

| A accepté

Réponse apportée
How to determine number of common elements between two vectors?
numel( intersect( X, Y ) )

presque 11 ans il y a | 2

| A accepté

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

presque 11 ans il y a | 2

| A accepté

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

presque 11 ans il y a | 0

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

presque 11 ans il y a | 0

| A accepté

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

presque 11 ans il y a | 0

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

presque 11 ans il y a | 0

Charger plus