Community Profile

photo

dpb


Last seen: Today 2012 이후 활성

Statistics

All
  • First Review
  • Master
  • Thankful Level 2
  • 36 Month Streak
  • Revival Level 1
  • Knowledgeable Level 4
  • First Answer
  • Solver

배지보기

Content Feed

보기 기준

답변 있음
If statement in a for loop
See above comment -- your IF expression is not ever TRUE unless each and every member of NewDist < 1 so it is never executed. B...

약 4시간 전 | 0

답변 있음
how to write a Matlab code to sum 10 terms of rational numbers?
N1=39; d1=8; N2=36; d2=12; D1=2; D2=5; S=N1/D1-N2/D2; for i=2:10 N1=N1-d1; N2=N2-d2; D1=D1+d1; D2=D2+d2 S=S+N...

약 8시간 전 | 0

답변 있음
How to display serial port setting?
See doc serialport and auxiliary section on serial port devices for all the skinny...

약 12시간 전 | 0

답변 있음
How to multiple set of normally distributed data?
You rest the RNG before each of the two sets in first code segment but only at the beginning of the loop in the second so the tw...

1일 전 | 0

| 수락됨

답변 있음
Finding the place where number is in a sequence and insert it in between that sequence
in=find(b>a,1,"last"); a=[a(1:in) b a(in+1:end)];

1일 전 | 0

| 수락됨

답변 있음
I only want to include the observations that have observations through the whole timeframe.
NFULL=588; % the full file number -- use variables instead of "magic numbers" in code tSave=groupfilter(tTable,'Permnoco',@...

1일 전 | 1

| 수락됨

답변 있음
How to manage NaN values and calculate mean under conditions
M=movmean(Daily,[0 2],'omitnan'); or, for the specific file >> tDaily=readtable('Daily data.xlsx'); >> tDaily.MTmean=movmean(...

2일 전 | 0

답변 있음
Write a warning dialog with a dynamic number of inputs
Two ways -- for your above with cellstr() array, just use {:} instead of char() ... >> emptyF=cellstr("Folder"+['A':'C'].') em...

2일 전 | 0

답변 있음
How to make a table with date times and durations?
>> t=table(rampD_start,rampD_end,'VariableNames',{'Start','End'}); >> head(t) ans = 8×2 table Start End ...

4일 전 | 1

| 수락됨

답변 있음
How can i modify the values on the y axis ?
You can label the ticks however you wish -- yticklabels(yticks-200); However, that doesn't change the data of course so the da...

5일 전 | 0

답변 있음
How to edit exported regression model in regression learner app, after downloading the model.
No provisions are made for loading anything but data -- seems silly design oversight, but that appears to be the way things are....

6일 전 | 0

답변 있음
contourf without isoline but with label
This one is nearly intractable -- the underlying text handles are tied to the color of the line, although one could set their co...

7일 전 | 1

답변 있음
How I can change the arrow head and style in a compass plot?
That's not easy -- the arrowheads are part of the lines so they're not separate objects that can be changed independently of the...

8일 전 | 1

| 수락됨

답변 있음
Extracting Data above a specifc year
idx isn't the year; it's an index into the array by year. Simply yrWant=1981; dWant=dataFC21(dataFC21.Year>=yrWant,:); will ...

8일 전 | 0

| 수락됨

답변 있음
Row and column of minim value from 3D matrix
I'm going to shorten variable names... nP=size(X,3); % number planes in array X r=zeros(nP,1...

8일 전 | 1

| 수락됨

답변 있음
I need the Documentary evidence that MATLAB complier runtime 7.13 is for free.
It is freely available, yes. But, The Mathworks doesn't ballyhoo it around in big, bold print, no. See one of many prior answe...

9일 전 | 0

답변 있음
How do I multiples of a number in an array
Well, what have you tried? Follow the recipe given -- y=[8x;2*x.^2-1]; % x is vector If size(x) --> 2,N, then will need to s...

9일 전 | 0

답변 있음
Error when i use findpeaks
findpeaks(Aceleracion,Tiempo); Unlike plot() and many other functions, since findpeaks can be called without a corollary time/f...

9일 전 | 0

| 수락됨

답변 있음
Cross Product of Each Row in Two Large Arrays
Description C = cross(A,B) returns the cross product of A and B. ... If A and B are matrices or multidimensional arrays, .....

9일 전 | 0

| 수락됨

답변 있음
reading text files based on specific sub-string values.
nWant=3; wildCardName=sprintf('*%02d*.txt',nWant); d=dir(wildCardName); Unfortunately, the MATLAB implementation of dir() onl...

10일 전 | 0

| 수락됨

답변 있음
problem with polyval plotting
Your x values aren't sorted so they're being plotted with connecting lines in the order they are in the input arrays ... The co...

10일 전 | 1

| 수락됨

답변 있음
Trouble with findpeaks - 14 EEG signals and peaks on same plot - different colors
T.Timestamp=T.Timestamp-T.Timestamp(1); % 1622835751.18846; varlist={'AF3','F7','F3','FC5','T7','P7','O1','O2','P8','T8','FC6...

10일 전 | 0

| 수락됨

답변 있음
how to replace a variable with its value in function handle?
Nope. You get what you want; while the string representation of the function echos the input, any variable(s) inside an anonymo...

10일 전 | 0

| 수락됨

답변 있음
textscan conversion specifier for 1 string N float - possible without specifying '%f' N times?
Unfortunately, the C syntax doesn't allow for a repeat count as does the Fortran FORMAT -- the MATLAB idiom to deal with it is s...

10일 전 | 0

| 수락됨

답변 있음
Trouble controlling x-axis values in stackedplot (or having all plots vertically stacked in tiledlayout for 14 columns)
tTry=readtable('Try 4.csv'); stackedplot(tTry,tTry.Properties.VariableNames(2:end),'XVariable','Timestamp') works just fine pe...

11일 전 | 1

| 수락됨

답변 있음
MATLAB coder alternatives for textread.
https://www.mathworks.com/matlabcentral/answers/461159-read-text-file-line-by-line-in-deployed-application#answer_374294 indica...

11일 전 | 1

답변 있음
hours(diff(datetime([t1;t2]))) function
hours(diff(datetime(t1;t2]))) = c You're using hours that is a builtin function as an array name on the LHS of an assignment st...

12일 전 | 0

답변 있음
How to remove zeros from an element in a cell array
yourarray=cellfun(@(c)c(~-0),yourarray,'UniformOutput',false);

12일 전 | 0

답변 있음
Function to check whether an array contains a duplicate of elements
function flag=isduplicate(x,v,ix) flag=numel(find(x(ix:end)==v))>1; end x is vector or if x is array in linear addressing o...

12일 전 | 0

답변 있음
How to set the plot start to zero ? I have some measurements. On the x label, they start from 0 to 6, but from 1 I can see something change on
x=[0:size(Throughput,2)-1].'; % generate temporary x vector for convenience from 0 hL=plot(x,1E-6*Throughput(1:4,;).'...

14일 전 | 1

더로드