回答済み
Problem importing files-- matlab version changes
While unfortunately may not return to see it; I took a little time and recast the function to reduce the duplicated code and cle...

8年以上 前 | 1

回答済み
Random Sampling of Repeated Numbers in an Array
On the assumption made in above comment... >> [B,ia]=unique(Q); >> isMult3=(NCount==3); >> arrayfun(@(x) randperm(x,1...

8年以上 前 | 0

回答済み
extract routine data from extra large (~20GB) text file
*ADDENDUM* Attached updated version that incorporates reading multiple atoms in single run; run-time seems essentially linear w...

8年以上 前 | 1

| 採用済み

回答済み
Normalize FFT Signal of ECG data
<https://www.mathworks.com/help/matlab/ref/fft.html#buuutyt-7 <FFT Example>> illustrates normalization of one-sided PSD to retri...

8年以上 前 | 1

回答済み
Problem importing files-- matlab version changes
OK, the mystery is solv'ed; the root cause is |*uiimport*| with it's "new and improved" flavor in wanting to use |table| class a...

8年以上 前 | 0

| 採用済み

回答済み
How do i create a big line with 3 portions ?
hF=figure; % make new figure, save handle to it X=[0;500;800;1000]; % given X values Y=[0;0;0;0];...

8年以上 前 | 0

| 採用済み

回答済み
reorganize two related matrices in ascending order
[A,ix]=sort(A,2); for i=1:size(A,1), B(i,:)=B(i,ix(i,:)); end Bound to be a way to write the indexing but it's not comin...

8年以上 前 | 0

回答済み
Error with set difference function
['1.1.1.100';'1.1.1.101';'1.1.1.141'] is a char() array, not cellstr or string Either >> c=cellstr(s) c = 3×1 cell a...

8年以上 前 | 0

回答済み
How to read data from csv files containing both text and data
'Pends on what you mean, specifically, by 'data'. One of the easiest ways to treat mixed data files if you do want the numeric ...

8年以上 前 | 3

| 採用済み

回答済み
Opposite of Interpolation: reduce size from a very detailed 2D matrix to a less detailed 2D matrix
W/O knowing anything at all about what the data are it's tough to say anything specific but the most obvious is to simply use so...

8年以上 前 | 0

回答済み
Asking user is they want to save matrix to text file.
While the above will work, |menu| has been deprecated; perhaps use |questdlg| instead... option=questdlg('Save to text file...

8年以上 前 | 0

回答済み
Assistance in coding needed
One way; may be more better...presuming _X_ is square... is1=(X==1); X(is1 & ~eye(size(X)))=0; Oh!...easy enough if i...

8年以上 前 | 0

回答済み
How can I move to a specific position in a txt file and write a value there? Target can be a specific word or bites from origin
>> maxim >> type testTriangle.txt #THIS IS MY SCRIPT #IT CALCULATES THE PERIMETER OF A TRIANGLE OF AREA: 18.81 m^2 #THE PE...

8年以上 前 | 0

回答済み
How to put 2 lines of best fit on a 2D 3 axis plot (x,y,y1)?
bha=polyfit((Qlmin,ha,2); bhn=polyfit((Qlmin,n,2); hold(hAx(1),'on') hLL=plot(Qlmin,polyval(bha(Qlmin)); hold(hAx(...

8年以上 前 | 0

回答済み
Extracting data from a 3D matrix
Try [A,B]=meshgrid(A,B); % 2D grid of frequency points ix=(abs(A-B)==200); % logic indexing array of locations 200 ...

8年以上 前 | 0

回答済み
How to use a for loop to iterate through a table?
Not sure I follow what you're after eggsactly but I'll take a fryer... for i = indextable{1,column}:indextable{end,column};...

8年以上 前 | 2

| 採用済み

回答済み
Data import and establish correlation between data
You didn't account for the header line... current=cell2mat(textscan(file1,repmat('%f'1,3),'headerlines',1,'collectoutput',1...

8年以上 前 | 0

回答済み
Need help with generating a box and whisker plot
Unfortunately, the builtin |boxplot| function only does the whole thing from the raw data; it doesn't have the feature to build ...

8年以上 前 | 0

回答済み
Difficulties programming coordinates identification
[isHit,whereHit]=ismember(Tile(:,2:3),Traj,'rows'); _isHit_ is T if the tile was touched during the walk; _whereHit_ is the...

8年以上 前 | 0

回答済み
Problem importing files-- matlab version changes
As for the behavior change, don't know about it; R2016b is last I've yet to install and it also automagically selected only the ...

8年以上 前 | 0

回答済み
The best way to collect the data of sensors over a long period of time to study the behavior of the sensors as to which sensor leads/lags during time transitions?
If have Signal Processing TB, sounds like job for |finddelay|

8年以上 前 | 0

| 採用済み

回答済み
Problem with bar plot
<https://www.mathworks.com/matlabcentral/answers/329953-how-to-create-bar-graph-with-categorical-data?s_tid=answers_rc1-1_p1_MLT...

8年以上 前 | 0

| 採用済み

回答済み
speed up max function
A significant fraction is undoubtedly the addressing of the 4D array; the same fragment but d=c(1:24,1,2,3); for i=1:1...

8年以上 前 | 0

| 採用済み

回答済み
could anyone help me how to arrange the following result in descending order as i am getting error
Use |cell2mat| on the cell array first, then sort on whatever dimension or subreference of the array you need.

8年以上 前 | 0

回答済み
slicing an M-by-N-by-3 matrix using an M-by-N matrix of logical values
A=0.5*(A.*i+C.*i);

8年以上 前 | 0

回答済み
Changing numbers to actual dates
>> DT=datetime(2018,7+T.',7) DT = 10×1 datetime array 07-Jul-2018 07-Nov-2020 07-Mar-2023 07-...

8年以上 前 | 0

| 採用済み

回答済み
Trouble with copyfile and rename
copyfile(NameF,[Param.folder1,Param.folder2,'rez.txt']); expands to copyfile(NameF,'C:\Users...C:\Users...rez.txt');...

8年以上 前 | 0

| 採用済み

回答済み
separate date and time from a .txt file with no spaces
You'll have to read this in pieces to get the first line that has an extra couple of fields, then the subsequent and paste those...

8年以上 前 | 0

回答済み
Index exceeds matrix dimensions error
In Matlab, no loops needed-- data=textscan(fid,'%s%s%d%d','delimiter', '/'); Names=string(data(:,2)); % conve...

8年以上 前 | 0

| 採用済み

回答済み
Is it possible to remove only specific tick mark(s) while keeping tick labels?
No; removing a tick clears the associated label; there's an inbuilt 1:1 correlation; "no tickee, no lablee". To do this would...

8年以上 前 | 2

| 採用済み

さらに読み込む