Réponse apportée
use of function in if statement
First and foremost, to place a function in a script or other function as local, it must be outside a logic construct...you then ...

presque 8 ans il y a | 0

Réponse apportée
Fron Python to Matlab
See doc randn When looking for something you don't know function name but have a clue about what is, lookfor keyword is u...

presque 8 ans il y a | 0

Réponse apportée
How to plot the same variable from multiple excel files?
A. If you don't have to actually calculate across the various datasets, just process them sequentially -- a loop counter could ...

presque 8 ans il y a | 0

Réponse apportée
calculation of a mean
26668626 isn't evenly divisible by 10; what do you want to do with the leftover 6 elements? You also can't add a column of 1/10...

presque 8 ans il y a | 1

Réponse apportée
why "M(i,j) = 'NN' is illegal? and how to correct it?
'MM' is a 2-element character array that you're trying to store into one array element--"you can't do that!" :) To store a char...

presque 8 ans il y a | 0

Réponse apportée
Changing elements of column and row in a matrix
One way... >> flipud(A(:,2:3).') ans = 6 5 90 91 >> Given the Comment below of arbitrary arrangement being arb...

presque 8 ans il y a | 0

Réponse apportée
How to overlap a least-squares line and its scatter plot in a LOG scale ?
OK, while it would be more fun with real data and to see what, specifically, you had done to correct where there was the misconc...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
textscan gives me wrong number of lines
In covTable = textscan(fid,['%s',repmat('%.8n',[1,20])],'HeaderLines',1); you set the _'HeaderLines'_ option to True (1)...

presque 8 ans il y a | 0

Réponse apportée
How to calculate PSD estimate of EMG data in 1Hz frequency bins for 100ms time windows.?
For those sampling parameters, one has that Fs = 256; % sampling frequency, samples/sec T = 1; % sample...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
Overdetermined system of equations - 8 degree polynomial
_" is this an inherent problem of matlab?!"_ Yes, but it's not really Matlab, per se, but computational numerics with FP arit...

presque 8 ans il y a | 2

Réponse apportée
Why is there points showing along the x-axis of my graph and how do i get rid of them?
... y=zeros(size(t)); y(1)=5; % Starting value of y n=numel(y); % Number of values of y for i=1:n-1 % For function...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
Categorical input to numerical array
The problem is your spreadsheet is structured such that the runs variable array is stored as a text string of a series of values...

presque 8 ans il y a | 0

Réponse apportée
How to edit the number of bars on a pdf
Sure, use the documented optional inputs of either _nbins_ or _edges_ depending on whether you specifically desired a given numb...

presque 8 ans il y a | 0

Réponse apportée
How to calculate trend value per year for time series data?
For starters using |timetable| and |retime|... opts=detectImportOptions('barguna.txt'); % build basic import ...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
How can I change the input method by using xlsread and convert the code?
Well, as Walter so astutely observed, you'll have to decipher how, precisely, the other variables than _r_ are built from it--su...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
Calculate arithmetic average based on block numbers
Don't use figures, attach .mat files or paste short sections of text for data...nothing anybody can do with a figure except look...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
use function unique and find in two different sheets of xls
Not directly, no. Read both sheets; concatenate the two and call |unique| on the result, or Read first sheet, call |unique...

presque 8 ans il y a | 2

| A accepté

Réponse apportée
Why is my while loop infinite?
Yes, but neither |nVal| nor |inpuTm| are modified inside the |while| loop, so they remain unchanged and the loop either never ex...

presque 8 ans il y a | 0

Réponse apportée
How do I combine datetime and double precision decimal data in one text file?
Your script is, indeed trying to do that because of the way |fprintf| works. fprintf(fileID, '%s %s %18.6f\n', t, m_sst); ...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
select y data with duration x data
Yeah, need to explain more carefully; it's not at all clear what _"in a duration of 5"_ is intended to mean. If it's just, as...

presque 8 ans il y a | 0

Réponse apportée
Output from a function as an argument to another function
In main script or calling function ... u=... X0=... X3=... X4=... X5=... Xb=... Tf=... X1=ICN(u,X...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
Fixing data set with if/else, how do I index/indicate this properly?
OK, to increment every element from the previous by its absolute matnitude change is I guess what you're asking to do... yy...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
cannot concatenate variable in a table
Try the following: VarNames = {'TStart','TEnd','CO2','CO2_SIGMA','H2O',... 'H2O_SIGMA','FC','FC_SSITC_TEST','LE','LE...

presque 8 ans il y a | 0

Réponse apportée
Reading csv file NaN and NaT problem
detectImportOptions(filepath); You didn't save the output of detectImportOptions so you don't have an import options object...

presque 8 ans il y a | 0

Réponse apportée
Help with readtable opts
Don't try to create the options object from scratch--that rarely, if ever, works because there's a whole lot of other stuff besi...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
How do we plot the graph with non available values in x axis.
There's no way the code posted will do what you say; it has fatal syntax error both lines--in the first the _'XTick'_ vector mus...

presque 8 ans il y a | 0

Réponse apportée
how to shift in timetable?
First need to clean up the syntax for creating the time table -- as written one gets: >> time_table=timetable({'1-Mar-2...

presque 8 ans il y a | 0

Réponse apportée
Why do I get the error message with "more non-singleton rhs dimensions"?
comp=imfuse(BW_vtk, BW_groundtruth,'falsecolor'); Method _'diff'_ returns a single value the difference so can be applied o...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
Parsing text file to get rid of specific number and preceding identifier
fmt='%s %f'; % set format fid=fopen('lori.dat'); % read data dat=textsc...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
I have a 2D matrix (81,000,000 x 2). Each row has a radius value and an intensity value. The radii are not in a monotonic in this 2D matrix. I want to sort 1st column from min to max and have column 2 move with it.
doc sortrows Or, of course, you can do it yourself via [~,ix]=sort(A(:,1)); % return index to sorted position of fi...

presque 8 ans il y a | 0

Charger plus