Réponse apportée
how to fit a a curve using gamma fit
See doc gamfit but all the inflection points in the green curve have no chance to be reflected in a fitted function.

environ 7 ans il y a | 0

Réponse apportée
Randomly assign a value to each column of a matrix
Not way subscript expansion works as written...use seqS(sub2ind(size(seqS),[1:mt].',t)) = true; instead

environ 7 ans il y a | 0

| A accepté

Réponse apportée
Accessing Character Vectors Within Cell Arrays, Output Is Size of Character Vector, not Contents?
While not your specific question, couldn't help but recast your function using standard MATLAB functions for various operations ...

environ 7 ans il y a | 0

Réponse apportée
Moving mean in matrix
% Identify the columns that contain at least one 999999 isKey = matriz_media == key; colIdx = find(any(isKey,1)); ...

environ 7 ans il y a | 0

Réponse apportée
how do you get the max y value in an fplot?
Look at the documentation and see what else you can do with fplot... fp=fplot(mu,[0 100]); [mxMu,imx]=max(fp.YData); % ...

environ 7 ans il y a | 0

Réponse apportée
3D plotting help
Per the documentation for scatter3, scatter3(X,Y,Z,S,C) draws each circle with the color specified by C. If C is a RGB triple...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
Renaming batch names removing extensions
Job for command. Make a .cmd batch file from the following--name DORENAME.CMD or somesuch... echo off setlocal for %f in (18...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
Plotting fresh plot for every iteration and change x-direction
Some basic "issues"... Your figure line is figure(6) which always reverts to the same figure you requested so it's not surprisi...

environ 7 ans il y a | 1

| A accepté

Réponse apportée
How can I modify appearence of multiple plots?
Save the errorbar object returned handles and set properties as desired.

environ 7 ans il y a | 1

| A accepté

Réponse apportée
Convert 1x2 double to 1x1 string
>> string(sprintf('[%d,%d]',s)) ans = "[3,7]" >> or, with features built into the new string class that mimic VB in ma...

environ 7 ans il y a | 1

| A accepté

Réponse apportée
How do I change datetime format in stackedplot on X-Axis?
hAx=gca; hAx.TickLabelFormat='hh:mm:ss'; You can set the XTick values as wanted but there will not possibly be room to label m...

environ 7 ans il y a | 0

Réponse apportée
How to write Multiple data to Excel
xlswrite is documented to accept one array for output...you've got two disparate pieces of data to place in the spreadsheet--you...

environ 7 ans il y a | 0

Réponse apportée
Loop for extracting a matrix
nAvg=10; mnAV=reshape(mean(reshape(av,nAvg,[])),[],2); Same caveat w/ Guillaume; errors if not divisible by nAvg and the final...

environ 7 ans il y a | 0

Réponse apportée
Calculate the hourly battery capacity
... B_Energy_t(i)=B_Energy_t(i-1)+delta_B_t(i); if B_Energy_t(i)>(R_B*A_B) B_Capacity_t(i)=R_B*A_B; if B_Energ...

environ 7 ans il y a | 1

| A accepté

Réponse apportée
writetable with spaces on header
You will have to write the table content via fprintf then; the writetable function doesn't have the flexibility to specify alter...

environ 7 ans il y a | 0

Réponse apportée
How can I plot 2 graphs with errorbar each one?
Use errorbar and hold on or as per the documentation, if y is a matrix errorbar plots a separate line for each column.

environ 7 ans il y a | 2

| A accepté

Réponse apportée
how to separate strings from a datatable?
As the error message says, strsplit only operates on the strings class or char arrays--it can't handle either cell strings (the ...

environ 7 ans il y a | 1

Réponse apportée
skip lines starting with a special character and assign data to variables
fid=fopen('yourfile.txt','r'); fmt='%f'; data=cell2mat(fid,fmt,'commentstyle','%')); Do the assignment to variables either by...

environ 7 ans il y a | 0

Réponse apportée
how to manually calculate the stacked bar
It's hard to do with mixed signed numbers because they end up on top of each other...to see more clearly what it actually does, ...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
How to create a vector based on previous value of same vector
I suspect overall performance will not be significantly improved as removing a small fraction of a total run time entirely will ...

environ 7 ans il y a | 0

Réponse apportée
Trimming Null Characters off a multi-dimensional cell array
>> A(any(~cellfun(@isempty,A),2),:) ans = 3×3 cell array {'a' } {'b'} {'c' } {'t' } {'y...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
Loop reading data into equation, store into array
data=importdata('yourfile.txt'); ix2=[false; abs(diff(ata(:,5)>=2))]; newdata=data(ix2,[3 5]);

environ 7 ans il y a | 0

Réponse apportée
Cleaning of large files of data
Start something like ttclean=rmissing(tt); % the subset with no missing data only dt=diff(ttclean.Time); % the di...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
How can I send data, or extract data, from a range of cells in a Uitable?
Well, experimenting shows you can address subarrays...one of the examples given modified slightly-- hF=figure; ...

environ 7 ans il y a | 0

Réponse apportée
How make this code execute faster?
Try S1 = setdiff(1:N;S)); What is the precise definition of "runs slow(ly)"? In what context and how have you deduced/conclud...

environ 7 ans il y a | 0

Réponse apportée
Why do I get an array out of bounds error
out(n) = out(n) + channel(n-fix(LFO(n))); the subscript for channel is n-fix(LFO(n)) where LFO=200*sin(t) so fix(LFO) ranges fr...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
Extracting values by looping through multiple files
displ=[]; % empty displacement array... d=dir('*.out'); for i=1:numel(d) txt=fileread(d...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
Split table at n rows and plot data
In general, I'd process something like the following -- you can add control variables to select which columns you want plotted; ...

environ 7 ans il y a | 0

| A accepté

Réponse apportée
how can I open any file with a .TXT file, read and print the data correctly?
fileID = fopen('*.TXT', 'r'); is invalid syntax-- fopen() can't use wild cards; tha'ts a dir functionality-- d=dir('*.TXT'); ...

environ 7 ans il y a | 0

Réponse apportée
Convert Time(string) to Time(number)
A little bit circuitous as for some reason TMW doesn't let one create a duration array from scanning text...why is beyond my ken...

environ 7 ans il y a | 0

Charger plus