Answered
1 if true, 0 if false: analyzing data from excel with text condition
Maybe you mean: if B == 'q' % Not: B = 'q' if 20 <= A && A <= 30 % NOT: 20 <= A <= 30!!! Go...

8 years ago | 0

Answered
Why the elseif condition doesn't work?
While Abraham has posted a useful explanation already, I suggest a simplification of the code in addition: v = dat(2:5) * [...

8 years ago | 1

Answered
Plot Animation in GUI
Maybe you mean: function timerCallback(hObj, eventdata) az = az + 1; view(handles.axes1, az, 22.5); ...

8 years ago | 0

Answered
Is there a way to get a list of all the folder directorys in one directory? Not only one level below.
With a modern Matlab version: FileList = dir(fullfile(inputDir, '**')); % Only folders: FileList = FileList([FileList...

8 years ago | 0

Answered
When using matlab, you can actually divide a scalar by column vector and produce a result; how does Matlab execute this?
The operation A/B is explained in the documentation: <https://www.mathworks.com/help/matlab/ref/mrdivide.html doc mrdivide>. In ...

8 years ago | 0

| accepted

Answered
How to compile a file on windows and use it on linux?
No. You have to compile on a linux machine.

8 years ago | 0

| accepted

Answered
How can i find the location of the max value of a matrix
Almost correct. You need the 2nd output of |max|: [num, ind] = max(a(:)); [X, Y] = ind2sub(size(a), ind);

8 years ago | 0

Answered
How to implement this pseudocode as script
n = randi([1, 1e6], 1) You can find this by your own, if you ask an internet search engine for "Matlab random integer". One...

8 years ago | 0

| accepted

Answered
Separating the character sequence at the desired length
I do not know what a "series of eliminations" is. Is the shown a char vector? str = '[$GASEN,1.6,6.4,89.7,996.0,27.6,0.0,0....

8 years ago | 1

| accepted

Answered
Problems with the name when listing files if no extension is specified
FileList = dir('*.*'); FileList([FileList.isdir]) = []; % Remove all directories including . and .. Now your file list ...

8 years ago | 0

| accepted

Answered
Squaring a sparse upper-triangular matrix results in more non-zero elements than its original self??
If your input matrix is strictly upper triangular (all elements on and below the main diagonal are zero), squaring it will set t...

8 years ago | 0

Answered
Avoiding unnecessary for loops
These are a few lines already. The mos expensive is the |exp| call, so you save the most time with using the symmetry (as mentio...

8 years ago | 0

| accepted

Answered
How to Convert .wav file into binary?
If you simply want to get a bit-stream representation, it does not matter in any way, if the data are a wav file or a jpeg. A WA...

8 years ago | 2

| accepted

Answered
I Can't install matlab2017b
Erreur de données (contrôle de redondance cyclique) This means a data error detected by a CRC check. Download the installer ...

8 years ago | 0

| accepted

Answered
How can i save instantaneously all plots of a script?
There is no single command, but you can write a function to do this: function SaveAllFigures Folder = fullfile(pwd, '/MA...

8 years ago | 0

Answered
Hi Everyone, I need your help on my problem.
1 < abc <= 5 This will not do, what you expect. Matlab processes this expression from left to right: # |1 < abc|. This i...

8 years ago | 0

| accepted

Answered
Can someone tell me what im doing wrong? its problem 3 part D
Avoid using "sum" and "max" as names of variable, because these are important Matlab functions. Redefining them as variables cau...

8 years ago | 1

Answered
How do I apply a function to two vectors using 2 inputs, one from each vector?
It is not really clear to me, what you are asking for. Maybe this helps you in spite of this: x = rand(1, 5); y = rand(1...

8 years ago | 0

Answered
How to get current status of the process in the edit box in gui matlab?
Something equivalent in the code of the GUI: handles.FigH = figure('Tag', 'UniqueAndDescriptiveTagName'); handles.EditH...

8 years ago | 0

Answered
Set default visibility of figures to 'on' not working!
It does work: set(groot, 'DefaultFigureVisible', 'off') figure('Name', 'not visible') set(groot, 'DefaultFigureVis...

8 years ago | 2

Answered
Can I publish a plot with the plot tools?
No. HMTL does not offer such features. If you have a license of the Matlab Compiler, you could create a tiny Matlab program, ...

8 years ago | 0

Answered
replace comma to dot
Add this to the callback of the edit |uicontrol|: function Edit1Callback(hObject, EventData, handles) % Or how it is calle...

8 years ago | 1

| accepted

Answered
DIVIDING A SIGNAL INTO SHORTER SEGMENTS AND SAVING THEM
Folder = 'E:\data_Lab\MITBIH\edited\'; X = xlsread('E:\data_Lab\MITBIH\edited\100.csv'); X1 = X(:,1); t1 = 1; t2 ...

8 years ago | 0

| accepted

Answered
Generate random integers with a condition
% [EDITED] after the comment: A = randi([0,5], 84, 1); z = (A == 0); nz = sum(z); ready = false; while ~ready...

8 years ago | 0

| accepted

Answered
how to use a low pass filter on a sequence
It depends on what the physical nature of the noise is. Maybe a Butterworth filter helps, or a Savitzky-Golay-filter, or a movin...

8 years ago | 0

Answered
How to choose all other indices than ones I know?
While |setdiff| is the nicer solution, it has a remarkable overhead. Logical indexing is usually faster: a = 1:1...

8 years ago | 1

Answered
how do I get a license and download a distributing computer server for study?
This is the public forum. For buying a license, the official sales team is better. Simply use the "Contact Us" link on top of th...

8 years ago | 0

Answered
why i am having error.. NOT ENOUGH INPUT ARGUMENTS
The error message means, that x is not defined. This happens, if you start this function using the "Run" button in the editor wi...

8 years ago | 0

Answered
DIVIDING and MUlLTIPLYING multidimensional matrices
Because I do not understand, what your inputs are, it is a bold guess only to suggest these functions: * <https://www.mathwor...

8 years ago | 0

Answered
Linear Regression, two matrices 1st(82x1), 2nd(82x7). ERROR
You forgot to mention, *which* error you get. Posting the message is essential in the forum. But I guess that you get the war...

8 years ago | 1

Load more