Community Profile

photo

Andrew Stark


Last seen: 3 months ago
8 total contributions since 2020

Andrew Stark's Badges

  • Thankful Level 2

View details...

Contributions in
View by

Question


Unable to filter data with a for loop and replace command
AA=Df{1,1}; AA(AA<1|AA>1.25)=0; BB=Zf{1,1}; for ii=1:length(AA); if AA(ii)==0 BB(ii)=0; end end A...

3 months ago | 1 answer | 0

1

answer

Question


Filtering data in matrices
AA=Df{1,1}; AAA=AA; for i=1:length(AA) if AA(i) <1 || AA(i)>2 AAA(i)=[]; end end I am trying to filter data t...

3 months ago | 1 answer | 0

1

answer

Question


How do you add up data in a for loop to plot in a histogram?
n=100; [Zf_S, Zf_L] = cellfun(@(B) bounds(B, 'all'), Zf); Zf_max = max(Zf_L); Zf_min = min(Zf_S); Zf_vals = linspace(Zf_min,...

3 months ago | 1 answer | 0

1

answer

Question


How to change axis size without affecting bin size
n=100; for i=1:3000 ZZ=Zf{i}; DD=Df{i}; Zf2=linspace(min(ZZ(:)),max(ZZ(:)),n); Df2=linspace(min(DD(:)),max(DD(:)),n); Zfr=...

3 months ago | 1 answer | 0

1

answer

Question


How do I keep the number of bins used the same when generating a histogram along with how do I illustrate its depth with color?
%Plotting Histogram for i=1:3000 Zf2=Zf{i,1}; Df2=Df{i,1}; H=[Df2,Zf2]; hist3(H,[10 10]) hold on end I am trying to gene...

3 months ago | 1 answer | 0

1

answer

Question


Error Using Accumarray "Requested array exceeds the maximum possible variable size"
I am trying to generate a histogram but I keep on getting this error Error using accumarray Requested array exceeds the max...

3 months ago | 1 answer | 0

1

answer

Question


Plot is generating a series of vectors instead of a continuous line plot
for i=1:1000 plot(Df{i,:},Zf{i,:}) hold on end Both Zf and Df look like this but continue to 1000; however, the v...

4 months ago | 1 answer | 0

1

answer

Question


How can I fix "Index in position 2 exceeds array bounds" in for loop/ if statements?
W=cell(p,1); for j=1:(p-1); w=A(index(j):index(j+1)-2); W{j}=w; end W2=cell(p,1); for j=1:(p-1); w2=A(index(j...

4 months ago | 2 answers | 0

2

answers