回答済み
While loop to get a specific section of data
Far easier if you would attach a (small) sample of the dataset, but the general idea would be thresholdUp=1; ...

約5年 前 | 0

| 採用済み

回答済み
How to count "gaps" consisting of designated values in a vector and obtain start and end indices?
v=sprintf('%d',ismember(sample_data_vector,invalid_values)|isnan(sample_data_vector)); iStart=strfind(v,'01')+1; iEnd=strfind(...

約5年 前 | 0

回答済み
Plotting multiple boxplots in same window...array for each boxplot is not the same length...causing error
Two ways to do it -- Use grouping variables and catenate the data into one long vector-- Data=[BoxSecurity; BoxWidefield_123;...

約5年 前 | 0

回答済み
Problem with duplicated points in Matlab.
You'll find that numel(unique(data(:,1))) < size(data,1) numel(unique(data(:,2))) < size(data,1) for one or both expressions....

約5年 前 | 1

| 採用済み

回答済み
How to ignore lines in file via rmmissing?
Don't create sequentially-named variables, use the array MATLAB so conveniently provided you... filename1= 'TEST.xlsx' %arxeio ...

約5年 前 | 0

回答済み
How do i insert seconds in a timeseries data when the frequency of the data is inconsistent?
indx=[0;find(minutes(diff(TT.Time)));height(TT)]; % find change locations indices N=diff(indx); ...

約5年 前 | 0

回答済み
Confusino regarding statistical tests for given distribution
You need to examine what the default parameters of the function return -- >> [h,p,stats]=chi2gof(data) h = 1.00 p ...

約5年 前 | 0

回答済み
Designate order of categorical array?
You have to create an ordinal categorical array of the desired ordering of magnitudes to force other than the alphabetic orderin...

約5年 前 | 1

| 採用済み

回答済み
For loop not doing what I want it to
TT=table2timetable(path_data); % convert the table to a time table TT=retime(TT,unique(TT.time),'mean'); % retim...

約5年 前 | 0

| 採用済み

回答済み
frequently used function for table variable
Don't pass a table to your function, have it accept numeric inputs and return same; then just call it with the table names. Muc...

約5年 前 | 1

回答済み
How to index/address the chart width and height using Position option in Text command?
pos=Geo.Position; % save as array x=pos(1)+pos(3)/2; % midpoint position horizontal y=pos(2)+pos(4)/2; % midpoint position...

約5年 前 | 1

| 採用済み

回答済み
Code to calculate raw moments?
Don't really need a function for that although could wrap in one if desired -- It would just be M=x.^N; NB: N in such an expr...

約5年 前 | 0

回答済み
How to calculate data higher than monthly mean value for one year data set?
rowfun to the rescue. TT_15.Month=month(TT_15.DT1); % generate grouping variable; rowfun() needs it in table TT_HHWL15=row...

約5年 前 | 1

| 採用済み

回答済み
the goto fortran90 command convert to matlab
OK, came back -- when indent code, the construct is more readily visible -- the two loops are completely independent and the fir...

約5年 前 | 1

回答済み
How to take average of matrices stored as cell array?
MATLAB is magic in such things... :) If your cell array is Irrad, then meanIrrad=mean(cat(3,Irrad{:}),3);

約5年 前 | 2

回答済み
How to get specific rows in a text file and store it in a matrix?
One of about a zillion ways...deliberately illustrating some newer features... opt=detectImportOptions('lageos1.txt','CommentS...

約5年 前 | 1

回答済み
How do I change the position of the axes permanently?
Taking a stab at the OP's meaning (thanks to the Crystal Ball having just been returned from the shop (yet) again...) Try set...

約5年 前 | 0

回答済み
Speed up search for matching strings
Only need one loop and I'd guess it'd be faster as written above if you didn't bother to remove the found elements--I suspect th...

約5年 前 | 0

| 採用済み

回答済み
How to delete specific values from matrix
>> A=randi(30,5,5) % sample array to illustrate ans = 23 4 7 27 8 9 15 23 ...

約5年 前 | 0

回答済み
Largest column of a matrix
Try function v=maxivect(A) [~,ix]=max(arrayfun(@(i) norm(A(:,i)),[1:size(A,2)])); v=A(:,ix); end

約5年 前 | 0

| 採用済み

回答済み
Why do I receive results mismatch in the FFT signal while using MATLAB built in FFT function? How can I able to rectify this?
If the fundamental frequency doesn't precisely match the frequency bins of the FFT, then the energy will be spread over multiple...

約5年 前 | 0

回答済み
Improving the Resolution in FFT
Look at documentation for nextpow2

約5年 前 | 0

| 採用済み

質問


enumeration Fails with get(), set() arguments
classdef XlBordersIndex < int32 enumeration xlDiagonalDown (5) xlDiagonalUp (6) xlEdgeLeft ...

約5年 前 | 1 件の回答 | 0

1

回答

回答済み
How to replace cell values with consecutive values related to their index
c=[{cell(1,1)} {cell(1,5)} {cell(1,3)}]; % original cell array % engine n=cellfun(@numel,c); v=1:sum(n); i1=1; for i...

約5年 前 | 0

| 採用済み

回答済み
How can I use horizantal lines instead of vertical lines to connect certain points?
"replace the red and green lines with a horiz[o]ntal bar" xb=[x(WS_new_array) flip(x(WE_new_array))]; yb=ylim*ones(size(xb)); ...

約5年 前 | 0

回答済み
Regarding reading mulitple csv file with specific rows
Read the headerline containing the number of channels in the dataset so you can compute the number of headerlines before the dat...

約5年 前 | 0

| 採用済み

質問


Why is "MODAL" not...
% Make sure user doesn't have file locked/open in another process first... % Excel creates hidden file with "~$" pr...

約5年 前 | 1 件の回答 | 0

1

回答

回答済み
Array idx bug when resizing it
The code needed to see the problem boils down to-- xvals=[]; for i=1:5 xnew = (xold-xold^2)*beta; xold = xnew; ...

約5年 前 | 0

質問


Changes to Controls Not Always Reflected in App Designer
Since the app has no other need for visual output (no graphics, etc.), I disable the pushbutton that kicks off the process and c...

約5年 前 | 0 件の回答 | 0

0

回答

質問


App Designer Figure Properties
This is a really basic question but I've been unable to figure out from the doc or in the app designer interface -- Is there so...

約5年 前 | 1 件の回答 | 0

1

回答

さらに読み込む