Answered
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...

8 years ago | 1

| accepted

Answered
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)...

8 years ago | 0

Answered
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...

8 years ago | 0

| accepted

Answered
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...

8 years ago | 2

Answered
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...

8 years ago | 1

| accepted

Answered
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...

8 years ago | 0

Answered
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...

8 years ago | 0

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

8 years ago | 0

| accepted

Answered
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...

8 years ago | 0

| accepted

Answered
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...

8 years ago | 0

| accepted

Answered
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...

8 years ago | 2

| accepted

Answered
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...

8 years ago | 0

Answered
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); ...

8 years ago | 0

| accepted

Answered
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...

8 years ago | 0

Answered
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...

8 years ago | 0

| accepted

Answered
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...

8 years ago | 1

| accepted

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

8 years ago | 0

Answered
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...

8 years ago | 0

Answered
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...

8 years ago | 1

| accepted

Answered
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...

8 years ago | 0

Answered
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...

8 years ago | 0

Answered
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...

8 years ago | 0

| accepted

Answered
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...

8 years ago | 0

| accepted

Answered
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...

8 years ago | 0

Answered
Aligning 2D Point Cloud data with X-Axis
Well, that's somewhat of a different problem statement.. <https://www.researchgate.net/publication/303329343_Least-squares_Fi...

8 years ago | 0

Answered
Aligning 2D Point Cloud data with X-Axis
I'll repeat the Comment made in previous followup-- Actually, it's a fignewton of a visual optical illusion effect; if you co...

8 years ago | 0

Answered
Deriving specific rows from a large text files
Read as table or timetable; deal with the asterisks as needs must depending on whether they're real or not... Two alternative...

8 years ago | 1

Answered
Axes limits - plotv
Sure, it's still just drawn on a normal axes object xlim([-1.5 1.5]); ylim([-1.5 1.5]);

8 years ago | 1

| accepted

Answered
Help speeding up a plot
At a minimum w/o digging more deeply 1) Before beginning simulation define color vector C=[repmat([0.6 0.3 0],8,1); ...

8 years ago | 0

| accepted

Answered
How can remove a certain element from all the rows of a matrix
Well a "matrix" with differing numbers of elements by row must be a cell array, _not_ a matrix in Matlab, just to get the termin...

8 years ago | 0

Load more