Community Profile

photo

dpb


Last seen: Today Active since 2012

Statistics

All
  • Revival Level 2
  • First Review
  • Master
  • Thankful Level 3
  • 36 Month Streak
  • Knowledgeable Level 5
  • First Answer
  • Solver

View badges

Content Feed

View by

Answered
"Column Vector" XTick labels
I don't think so with the tick labels(*), but you can write them with text as v1=[0:2];v2=[2:-1:0]; for i=1:3 xtl(i)=cellst...

ongeveer 20 uur ago | 0

Answered
print value to matrix
nIter=YourNumberOfTotalIterations; nRows=20; V=zeros(nRows,nIter); % preallocate for i=1:nIter V(:,i)=YourF...

ongeveer 21 uur ago | 0

Answered
Change of marker size and color of a fitted plot
The specialized version of plot for use with a fit object doesn't know about all the regular data plot function; it has only a s...

ongeveer 21 uur ago | 0

Answered
stacked bar graph from 3 columns
For 'stacked' the columns are sum of rows; there are as many bars as rows. So, if your data array above is XYZ, then Z=reshape...

1 dag ago | 0

Answered
Reading and plotting synchrotron data
Where does the 20000 come from? Is that how many observations/measurements are in each of the 512 files, I guess? Doesn't seem...

2 dagen ago | 0

Answered
Splitting table text column with multiple delimiters based on parantheses.
A rudeness about way the string functions are implemented -- they won't return variable numbers of elements that would be extrem...

2 dagen ago | 0

Answered
Locate values in dataset and output the corresponding time column
ix=find(diff(sign(x))==-2)-1;

2 dagen ago | 0

Answered
Set x-axis tick labels in subplots
There's nothing in that code to rotate the x axis labels that must be in the previous three. As general comment, would be bette...

4 dagen ago | 0

Answered
Create a loop to read a matrix
ic=find(~all(surv_matrix==0)); will return your three column indices to use to index into the array. You haven't defined where...

5 dagen ago | 0

| accepted

Answered
What is the recommended way to pass long list of parameters between main workspace and function?
If the variables are such as your example of a sequence of number variables with same root name, that implies they're related/sa...

5 dagen ago | 1

| accepted

Answered
Scatter plot with strings on x axis
<scatter> can take a categorical variable as an x variable in which case you can get the text labels automagically -- however, t...

6 dagen ago | 0

| accepted

Answered
I am trying to filter audio using lms filter but i got this error"Error using filter Invalid data type. Input arrays must be numeric or logical".
I don't have the DSP TB, but looking at the doc, the intro page has To filter a signal using an adaptive FIR filter: Create th...

7 dagen ago | 1

| accepted

Answered
Axes Limit in Curve Fitting Toolbox of MATLAB 2022a
Under Tools menu.

8 dagen ago | 0

Answered
Filtering Table Data for highest recording with multiple samples per day
Use a <timetable> and <@doc:retime>

8 dagen ago | 0

Answered
Cross product of two tables without common key
May be something more exotic, but I'd just build it from the pieces... tT=[table(reshape(repmat(t1.Name,1,height(t2)).',[],1),'...

8 dagen ago | 0

Answered
Can somebody explain the following code ?
Just turns into binary image at the threshold value, th NB; the double loop construct in MATLAB should be written as vector log...

8 dagen ago | 0

Answered
How can I export a string to a .txt file?
As documented, save translates character data to ASCII codes with the 'ascii' option. It means it literally! Use writematrix(...

8 dagen ago | 0

| accepted

Answered
how to search start and end indices of longer interval with threshold and variance conditions
The function does return the change point indices -- you just didn't call it with a return value to save them...that plot looks ...

8 dagen ago | 0

Answered
combine 2 timetables with different variables into 1 timetable?
ttC=synchronize(ttA,ttB); % catenate the two horizontally at matching times ttC=ttC(isfinite(ttC.Price),:); ...

8 dagen ago | 0

| accepted

Answered
Extract sub array from d-dimensional array given indices for each dimension
Did you try the obvious??? Smallish example, but works in general... >> d=3;A=reshape(1:4^d,4,4,[]) % make up a s...

9 dagen ago | 0

Answered
How to calculate rmse in daily and monthly scale?
Where's the date data to go with the data -- or is it daily for a given 30-day month, maybe? If so, use a timetable with the da...

9 dagen ago | 0

Answered
when datenum is the x-axis How to change the x-axis to discernable time
On an assumption you can use datetime t=datetime(2000,1,1):days(1):datetime(2000,1,1)+calyears(6); % build daily time vector o...

11 dagen ago | 0

Answered
plotting leastcurve fit through exceldata
Pass the data and generalize instead; don't hard code indices into indexing expressions. Also, MATLAB has builtin functions pol...

13 dagen ago | 0

Answered
I have found respective latitude & longitude points from an excel file-- I want to export the data that satisfies both restrictions on the lat & long (matching rows).
Making it harder than need be -- first, use readtable instead of readcell()... tAIS=readtable('AIS_2018_05_18_ex.csv','Range','...

13 dagen ago | 1

Answered
cell of characters to column
We need to see this in situ -- how did you get it into such a form, first. Attach the file from whence the data came (or a repr...

13 dagen ago | 0

| accepted

Answered
Help on ploting bar graph using table
Pursuant to the previous comments; my suggestions would result in something like >> tSinghBar=readtable('data2.xlsx'); >> tSin...

13 dagen ago | 0

Answered
(In excel) Reading rows with text, in between continuous rows of numbers, by 'readtable' function?
readtable() can't do that -- each column must be the same data type -- or a cell which can contain either, but then would have t...

13 dagen ago | 1

| accepted

Answered
Change figure size based on the number of nexttile
Well, when you use the 'flow' option, that's what you've told tiledlayout you want -- the size/location of the figures to update...

14 dagen ago | 0

Answered
cell merge and print
Depends upon what you mean by "merge" here...if you want the numeric result, that's D=-reshape(diff(reshape(M.',2,[])),size(M,...

14 dagen ago | 0

Load more