Answered
How to import all files with the same extension from specific folder to Matlab?
_...I need to import all files D:\THESIS\My file\Kangwon\RUN\U\Dynamics\output\*.mat_ See the FAQ <http://matlab.wikia.com...

12 years ago | 1

| accepted

Answered
How to extract data from data file?
By current memory, that's not all that big any longer...probably just as easy to just load the file and then trash the columns d...

12 years ago | 0

| accepted

Answered
Remove NaN from a matrix
If have the Stats Toolbox, then just *nanmean* If don't, it's more of a pain; unless the NaN are consistent in number per col...

12 years ago | 2

Answered
Replacing a string with another string in a text file
The thing about sequential files is that they're, well..."sequential" You've got a couple of choices -- read the full file as...

12 years ago | 2

| accepted

Answered
How can I replace numbers in a vector by text ?
s(s==0)='text'; won't work because you're trying to change datatypes piecewise in an array. SOTOO, >> s=rand(10,1)>...

12 years ago | 1

Answered
How to vectorize the following code?
reshape(sum([a.cycles]),length(a),[]).'

12 years ago | 0

| accepted

Answered
How to use box plots for irregular x-axis intervals?
While I've not used it, the optional _GROUPING_ input variable should suffice in conjunction with the _'positions'_ named parame...

12 years ago | 0

| accepted

Answered
Why is 10^5 more expensive than 10e5?
10^N is a computational expression whereas 10EN is a literal constant. So, the former requires computation (and the exponenti...

12 years ago | 5

| accepted

Answered
Extracting numerical data from text file
If all you need is that start point coordinates, then about the simplest is just >> [xs ys]=textread('project.txt','%f %f',...

12 years ago | 0

| accepted

Answered
What does a FFT plot show?
Not sure this one shows you much of anything...you've plotted the double-sided spectrum which isn't generally of much value; mig...

12 years ago | 1

Answered
How do I import multiple CSV files?
<http://www.mathworks.com/matlabcentral/answers/130182-how-do-i-read-all-text-files-from-a-folder#answer_137417>

12 years ago | 1

| accepted

Answered
how to overcome this error?
_f (size(A) ~= size(B)) error('The size of the 2 matrix are unequal')_ The function is designed for images that are the same ...

12 years ago | 0

| accepted

Answered
Count Peaks, csv-files
_...how I can combine the threshold and the minpeakdistance in find peaks?_ They're named-value pairs, along w/ the rest of t...

12 years ago | 1

Answered
Index is out of range for deletion ???
for g = size(finalLinkCost1DMatrix,3):-1:1 for f = 1:size(AR,2) % 1:6 for h=1:size(finalLinkCost1DMatrix,2) % 1:1...

12 years ago | 0

Answered
Plug in matrix values into a Formula
interp1(T(:,1),T(:,2),Z,'nearest',NaN)

12 years ago | 1

Answered
textscan difficulties with mixed datatypes
Is only one of the many inconsistencies/quirks in *textscan*... AFAIK about the best you can do is to then post-process anoth...

12 years ago | 1

Answered
code for calculating root mean square error of two quantities having different dimensions?
Agree w/ cycler that it's confusing _why_ this should be so, but the answer to the question _...trying to truncate the larger o...

12 years ago | 0

Answered
How to generate and use different colours on a plot and label as per the colours?
I just had another thought -- don't know if it'll work or not and I cleaned out the trial stuff so don't have it to play w/ at t...

12 years ago | 0

Answered
importing CSV data with multiple formats in a row into MATLAB ?
Try sotoo of-- fid = fopen('abcd.csv','r'); fmt=['%*s %2d:%2d:%2d.%3d repmat('%f',1,9)]; C = textscan(fid, fmt,'heade...

12 years ago | 2

| accepted

Answered
importing CSV data with multiple formats in a row into MATLAB ?
Many options in Matlab; probably the simplest to code is [dat,txt]=xlsread(yourfile); _dat_ will be an array of the nu...

12 years ago | 1

Answered
Plug in matrix values into a Formula
_...how i go about selecting the minima of every 5 rows..._ OK, here is where you need to think (and it helps when you get to...

12 years ago | 1

Answered
Place annotations using axis coordinates from a date-axis
A start...basically, you just generate datenums that match the locations you want. dt=datenum(2014,5,[10:12]); % ...

12 years ago | 0

| accepted

Answered
Count Peaks, csv-files
Roger mentioned *addpath* to solve the subdirectory problem. To read a series of files, see the FAQ <http://matlab.wikia.com...

12 years ago | 1

| accepted

Answered
??? Subscripted assignment dimension mismatch. Error
Insufficient info to tell -- the problem would appear to be in what _isn't_ shown. Use debugger to stop on the error and exam...

12 years ago | 1

Answered
How to generate and use different colours on a plot and label as per the colours?
plot(rand(10,4)) % plot 4 lines in default color cycle legend('a', 'b', 'c', 'd') % label them -- c...

12 years ago | 1

| accepted

Answered
Vertical lines in legend:
OK, here's the response from cs-sm... > Simplest would be to make each group of lines a column in the xy array > and then...

12 years ago | 1

Answered
Hidden Markov Model for Bearings
<https://www.google.com/search?q=predicting+bearing+failure+vibration+Markov>

12 years ago | 0

Answered
Reading blocks of data
13 03 12 00 00 0.0000000 0 7 G05 G16 G21 G25 G29 G30 G31* fid=fopen('filename.txt','r'); % open file l=fgetl(fid); ...

12 years ago | 1

| accepted

Answered
Error in the creation of a Greek letter in a GUI
Warning: Unable to interpret LaTeX string "\ alpha" > In openfig at 135 In gui_mainfcn> local_openfig at 286 In gu...

12 years ago | 2

| accepted

Answered
how to write if statement into for loop?
Need storage arrangement to be precise, but if you have vectors of same length where Longitude is given for each element, then s...

12 years ago | 1

| accepted

Load more