Answered
How to draw quiver in a logarithmic axes?
surf(... hAx(1)=gca; % first axes; make semilog in y, do whatever... hAx(2)=axes('position',get(hAx(1),'position')...

8 years ago | 0

Answered
Variable number of plots in the same figure
Don't make the data arrays with sequential names; instead use arrays (by column per each variable) and then PLOT() can handle th...

8 years ago | 0

Answered
Finding the Maximum of 6 matrices
The problem is the creation of sequentially named variables instead of using a form of data storage that makes addressing the da...

8 years ago | 0

Answered
Error using reshape To RESHAPE the number of elements must not change.
Well, if I just make up a .wav file and try your code on it I find [fData,Fs] = audioread('handel.wav'); orig_siz...

8 years ago | 0

Answered
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 years ago | 1

Answered
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 years ago | 0

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 1

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 3

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 2

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Load more