Réponse apportée
Reading .csv files from .txt file.
How to read text files is maybe the most frequently asked question. Among many solutions, you can either directly read the txt f...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Concatenate nested cell array in one
Since apparently it was the correct solution, I'll repost it: It puzzles me why you would want this without the temporary varia...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Splitting arrays based on row number resulting from for loop
Here you go: data=(1:10)'+(0:1);%generate some data splits=[3 8];%use the splits you mentioned if ~isempty(splits) spl...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
GUI Interface to guess a random number
You should put it in the function that executes when you start you GUI: OpeningFcn. Be sure to store the value in the handles s...

environ 6 ans il y a | 0

Réponse apportée
Counting and removing rows with the same numbers in a particular order
Assuming this is indeed the input data you have: A = [1234;4123;3412]; B=arrayfun(@(x) sort(sprintf('%d',round(x))),A,'Unifo...

environ 6 ans il y a | 0

Réponse apportée
Picking up the correct index values
You should probably rethink the way you store these values, because this is much more difficult to index than it needs to be. v...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
error when using 'find' function
If you store output of the find function to a temporary variable, you will notice that the error occurs when that temporary vari...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
How to solve this error?
You are close, but you forgot that the code below returns an array. month==[4,6,9,11] Use parantheses to group your coditions....

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Adding Noise To A Folder OF Images in A Loop
If you don't understand how a function works you should read the documentation. It contains several examples and shows you how t...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
scatter plot covers the axes values
If you manually set the tick labels you can set an arbitrary distance between the axis and the label. If this doesn't work you m...

environ 6 ans il y a | 0

Réponse apportée
How to automatically display a figure in fullscreen in MATLAB2016?
It doesn't look it is possible to draw over the taskbar like that in older versions. The closest you will probably get is with s...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Counting the number of occurences for specific values in an array
a=[ 1 2 3 4 5 5 4 3 2 1 ] ; histcounts(a) If you have non-integer data you can use the unique function to convert your vector ...

environ 6 ans il y a | 0

Réponse apportée
How can I create a structure array for two files?
You can treat fields of a struct just like any other variable: ECGData=struct;%create empty struct, this isn't mandatory ECGDa...

environ 6 ans il y a | 1

| A accepté

Réponse apportée
How to calculate average for data every nth row?
Something like this should do the trick: data=rand(900,9); row_interval=30; avg=zeros(1,row_interval); stderr=zeros(1,row_...

environ 6 ans il y a | 1

Réponse apportée
how to make a table as a figure ?
There is an example about how to do this in the documentation of the uitable function.

environ 6 ans il y a | 0

Réponse apportée
Can anyone help me with understanding this code?
Did you read the documentation for arrayfun? That seems like a good place to start. The part with 'un' is a bit more tricky tho...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
How can i read exact value (as it is) from csv file and separate data using empty row? ver.16b
The readfile function you can find here will read a file to a cell array, one line per cell. It will preserve blank lines and le...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
text on image position
You can set the Unit property to Normalized. Note that this uses normal axis coordinates, so the y-axis is flipped. (the full b...

environ 6 ans il y a | 0

Réponse apportée
Average multiple vectors with different lengths
Pad the shorter vectors with NaN and use the 'omitnan' flag in mean.

environ 6 ans il y a | 1

| A accepté

Réponse apportée
pop up menu & push button
You can retrieve the selections like this String1=get(handles.popmenu1,'String'); Selection1=String1{get(handles.popmenu1,'Val...

environ 6 ans il y a | 0

Réponse apportée
How can I query the content of a cell?
The same way you get the contents of any cell array: use curly braces. YourCell{n}==0 isnan(YourCell{n}) isempty(YourCell{n})...

environ 6 ans il y a | 0

Réponse apportée
Read Text File in Matlab
There are many ways to do this. One of the many ways is using the code below. It makes use of the readfile function which you ca...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
How to get a period of cosinus function ?
Because this is homework, I won't provide a copy-paste ready solution. If you follow the example from the documentation for fft...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Extract Strings of different lengths
The code below assumes there is only a single match for 'ETSL'. StartMETAR=strfind(rawdata,'ETSL')-19; EndMETAR=strfind(rawdat...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
keep scientific notation in plot title
If you want a specific notation you can enforce that with the sprintf function. Otherwise Matlab will _automagically_ pick a for...

environ 6 ans il y a | 0

Réponse apportée
Unable to perform assignment because the left and right sides have a different number of elements.
tNow is a vector, so you can't store it in a scalar, which is what you are trying to do. You probably want to replace every inst...

environ 6 ans il y a | 0

Réponse apportée
Separate values in a matrix greater than 0
So like this? isFlood=water_height>0;

environ 6 ans il y a | 0

| A accepté

Réponse apportée
HELP for Error in gui_mainfcn(sui_State, varargin {:})
You have a problem if you don't have the fig file of a GUIDE GUI. You need both the m file and the fig file. This is one of the ...

environ 6 ans il y a | 0

Réponse apportée
Hold on in for loop doesn't work
You are calling figure inside the loop. You need to put that outside of the loop, or make sure another way that you have a singl...

environ 6 ans il y a | 0

Réponse apportée
principle component analysis (PCA)
Read the documentation: coeff = pca(X) returns the principal component coefficients, also known as loadings, for the n-by-p dat...

environ 6 ans il y a | 0

Charger plus