Réponse apportée
How to extract the x,y and z coordinate points from NC code?
fmt='N%fX%fY%f'; fid=fopen('yourtextfile.ext','r'); NXY=cell2mat(textscan(fid,fmt,'collectoutput',1)); fid=fclose(fid...

presque 8 ans il y a | 0

Réponse apportée
How could you write a function that returns a histogram with axis labels and title
|hist| when save the return value only returns the counts vector and, as you've discovered; doesn't actually draw the plot. T...

presque 8 ans il y a | 0

Réponse apportée
How to normalize a matrix such that each column sums equal 1
You're missing the "dot" operator so the division is matrix divide not element-wise. See doc ./ doc rdivide % that's a ...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
Passing functions in MATLAB
Look at function handles; there's a section under _Data Types_ in the documentation...

presque 8 ans il y a | 0

Réponse apportée
How to read a comma delimited .dat file containing mixed formats
Just read the file as it's given then parse the data columns... t=readtable('couzi.csv','ReadVariableNames',0,'Delimiter','...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
How to export coefficients names when using rstool?
Real issue with the Matlab user interface for most of the Curve Fitting and Statistics Toolbox stuff -- frequently it is very di...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
How do i convert Julian date to Month date?
s='2018-107T18:49:39.164'; infmt=['uuuu-D''T''H:m:s.SSS']; fmt='dd MMM yyyy HH:mm.ss.SSS'; >> t=datetime(s,'Input...

presque 8 ans il y a | 1

Réponse apportée
Using regular expression to read part of the filename
*AMMENDED -- dpb* Don't need regular expressions for that purpose, just select the first N-3 characters in the file name... ...

presque 8 ans il y a | 0

Réponse apportée
convert excel datetime to time in matlab
Specific file always helps as Walter suggests, but try a=datetime(xlsread(fileName,'C3:C30000'),'convertfrom','excel'); a....

presque 8 ans il y a | 1

Réponse apportée
how can i install matlab 2018b (64 bit) on my window (32 bit).
No can do. R2015b was the last 32-bit version. <https://www.mathworks.com/support/sysreq/previous_releases.html> <ht...

presque 8 ans il y a | 0

Réponse apportée
Read excel comments into Matlab
Try this as starter--it's a routine I built to process some data stored as comments on a worksheet for the local community colle...

presque 8 ans il y a | 0

Réponse apportée
Matrix subtraction errors using repmat
# You can subtract/add/multiply/divide any sized array with a scalar without |repmat| so you're "fixing" a problem that isn't a ...

presque 8 ans il y a | 0

Réponse apportée
Plotting very small and large values on same figure.
Look at doc yyaxis to put the two on separate axes that will cover range of each variable independently for starters, at...

environ 8 ans il y a | 0

| A accepté

Réponse apportée
how to remove duplicates in correlations matrix
x=triu(x,1); Need to convert from N variables to an array to do this effectively. I'd guess that would be beneficial going ...

environ 8 ans il y a | 0

| A accepté

Réponse apportée
how to know the distribution of my data
Plotting the data it definitely is _not_ normal; has long RH tail and isn't symmetric. For hypothesis testing it would be bet...

environ 8 ans il y a | 0

Réponse apportée
How can I extracting a signal pulse from a data
_"extract the first pulse (which is also the highest pulse)"_ Presuming you can be assured of the assumption, the first is th...

environ 8 ans il y a | 1

| A accepté

Réponse apportée
Hello, Please how can i plot a stem plot of lets say 300 data points?
figure hS=stem(X(:,2),Y(:,2)); % draw stem plot, save stem object handle hold on % so can add onto exi...

environ 8 ans il y a | 0

Réponse apportée
Stretching a rectangle over a date axis
Ayup, "no can do" it seems...another place TMW either hasn't yet got a round tuit or didn't think it needed to add an overloaded...

environ 8 ans il y a | 1

| A accepté

Réponse apportée
Read text file with a header & not tab delimited
Here's where some new-fangled stuff comes into play -- the fixed-width import object. Since the portion of the file of intere...

environ 8 ans il y a | 2

Réponse apportée
Repeating Matrix Element Until N Times
Just one of many possible ways... L=length(y); N=7; x=repmat(y,ceil(N/L),1); x=x(1:N);

environ 8 ans il y a | 2

Réponse apportée
Delete empty cells in 3 dimensional cell array
That's a 2D cell array w/ three columns, not a 3D array. c=c(~cellfun(@isempty,c));

environ 8 ans il y a | 0

Réponse apportée
How to find and store certain rows of an array
_"sadly, not exactly what I'm needing :/"_ Au contraire... :) % make up some fake data... t=repmat([190:10:230].',6,1...

environ 8 ans il y a | 0

Réponse apportée
Is there any way to have labels in color for boxplots?
They're just XTickLabel values; set as desired as with any other axes. For some reason TMW hasn't made a color property for t...

environ 8 ans il y a | 0

| A accepté

Réponse apportée
I have a question on usage for fft to get fourier series back.
|FFT| returns the two-sided DFT so half the energy is in each of +ive and -ive frequencies. However, there is only one DC compo...

environ 8 ans il y a | 0

| A accepté

Réponse apportée
How to correct a problem with arguments in my fprintf
More than missing the format strings for any outputs is the unneeded for loop and bad indexing expression. fprintf('At the ...

environ 8 ans il y a | 0

Réponse apportée
Loop appears to be infinite, how to assign new matrix based on seemingly simply conditionals?
_"create a new variable, 'temp_activeTime', that corresponds to all time-series in the EMG matrix that align with the time data ...

environ 8 ans il y a | 0

Réponse apportée
How do i sort csv file in righ order??
A) Don't name them that way..use >> num2str([1:3].','%03d.csv') ans = 3×7 char array '001.csv' '002.c...

environ 8 ans il y a | 0

Réponse apportée
Fit and Plot a Polynomial Surface
Check spelling... :) x1=[100 200 300 400]'; [x,y]=meshgrid(x,y1); You defined |x1| but used |x| as argument instead.....

environ 8 ans il y a | 0

| A accepté

Réponse apportée
How to plot a histogram object
bar(foo(3).BinEdges(2:end),foo(3).BinCounts) or |doc histogram| recommends |save/loadfig|

environ 8 ans il y a | 1

| A accepté

Réponse apportée
Why arent the labels and ticks being ran in my code?
Wrong order, call |plot| last *or* use hold on before |plot| to keep what's already been drawn. BTW, I strongly suspe...

environ 8 ans il y a | 0

Charger plus