Answered
Regexp text-block matching challenges
With R2013b, this script returns the three blocks between *|RAM_DUMP:|* and the closest empty line %% str = fileread...

11 years ago | 1

| accepted

Answered
CPU allocated to Matlab is bounded at 25% for entering code, with or without parallel computing on
* Standard Matlab is single threaded, but there are functions which run in parallel. * <http://se.mathworks.com/products/parall...

11 years ago | 0

| accepted

Answered
Undefined function "......" for input arguments of type 'double'
The cause to this error message may be one of * typo, you have misspelled the name of the function * the function cannot be...

11 years ago | 4

| accepted

Answered
how to convert 10000 txt files 1 data file
Google says: * <http://bluefive.pair.com/txtcollector.htm TXTcollector - Free Text File Merging Tool> * [If on Windows] type...

11 years ago | 1

Answered
How to choose subset of cell arrays?
Hint: >> intersect( expselect, cell2mat( plotselect ) ) ans = 2 4 >> This assumes that all ce...

11 years ago | 0

Answered
catch special characters with strcmp
* Doc says: <http://se.mathworks.com/help/matlab/ref/strread.html Note: strread is not recommended. Use textscan instead.> (...

11 years ago | 0

Answered
Listener being called twice
<http://se.mathworks.com/help/matlab/matlab_external/use-net-events-in-matlab.html Doc on System.IO.FileSystemWatcher says:> ...

11 years ago | 0

Answered
Sort every single row
One way %% M = [16 2 3 13; 5 11 10 8] ; for rr = 1 : size( M, 1 ) M( rr, : ) = sort( M( rr , : ),...

11 years ago | 1

| accepted

Answered
If , else if statement problem
The *|if - elseif - else - end|* control construct makes little sense. <http://se.mathworks.com/help/matlab/ref/if.html Docu...

11 years ago | 1

| accepted

Answered
Making a *.m file "read only."
I didn't read your question to the last sentence, but don't delete my answer. I use this function, *|cmd_read_only|* to avoid...

11 years ago | 6

Answered
Dimension mismatch - saving output from a for loop
The problem might be that find returns vectors, the length of which varies with *|i|* Repolace AB(i,:) = find(SS..etc....

11 years ago | 0

Answered
sorting files into 2 separate folders
Maybe this will help you %% % sorting alternating data path = 'C:\Users\......'; output_dir =...

11 years ago | 1

| accepted

Answered
Error using fzero with vectors
I think you should replace (AP2_AP1-1))/sqrt by (AP2_AP1-1))./sqrt to make *|f|* work with vectors. &nb...

11 years ago | 1

Answered
How do I pull data from a figure with multiple plots?
Looks strange too me. Do you use R2014b with the new graphic? If on the old graphic try axh = findobj( gcf, 'Type', 'Axes...

11 years ago | 2

| accepted

Answered
Entering huge arrays of numbers...
This is the way I would do it %% fid = fopen( 'cssm.txt' ); cac = textscan( fid, '%f%f', 'Headerlines', 1, ...

11 years ago | 0

Answered
extracting arrays from a taylor series and plotting
*Hints:* * *|aprrox50|* &nbsp is a typo * read the doc on ezplot, note that *|approx..|* are double vectors * use *|plot|* ...

11 years ago | 1

Answered
How can I copy the programm?
_*"Also I get one warning:"*_ &nbsp See the <http://se.mathworks.com/help/matlab/ref/uicontrol-properties.html Uicontrol Prope...

11 years ago | 1

Answered
How to consistently scan for a text file (or any file)?
_*"soon as the file is in that specific directory"*_ &nbsp See: <http://se.mathworks.com/help/matlab/matlab_external/use-net-e...

11 years ago | 3

| accepted

Answered
Max Min value in every column Of Matrix
_*"the max and min value should stand out in each column"*_ &nbsp AKAIK: formatting the output in the command window is not avai...

11 years ago | 3

Answered
Display the following in the command window
Replace average=mean(data) by average = mean( data(:,2:end), 2 ) to avoid the Participants ID and average o...

11 years ago | 1

Answered
Can anyone help to write a code for plotting the following equation with time please?
With a little bit of guessing %% A= 1; B= 10; omega= 1; x0 =0.1; t = 0 :0.0001:1000; ...

11 years ago | 1

| accepted

Answered
program for schrodinger equation
Search the File Exchange for <http://se.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&term=schrodinger+equation ...

11 years ago | 1

| accepted

Answered
i want to count the frequency of occurrence of no 5 in the above vector .Is there any matlab function to count the frequency of occurrence of a particular number?
If the numbers are whole numbers and you want the _"frequency"_ of one specific number then here is another way >> L = ra...

11 years ago | 0

Answered
Identify similarly named images from different folders
Try to make something out of this s1 = dir( fullfile( folder_1, '*.png' ); s2 = dir( fullfile( folder_2, '*.png'...

11 years ago | 1

| accepted

Answered
I want to multiply the first two numbers of a digit together and subtract the third from it!
Another way (, which I like better) str = '223456'; cac = textscan( str, '%1f%1f%1f%*s', 'CollectOutput', true ); ...

11 years ago | 1

| accepted

Answered
Extracting a number from a sentence string
A start >> a='my weight is between 200 and 250 lbs' a = my weight is between 200 and 250 lbs >> cac = rege...

11 years ago | 3

Answered
changing a figure to a subplot
I can neither see any mistake in your plotting code nor reproduce your problem. However, better not rely on the current handle....

11 years ago | 1

| accepted

Answered
What is the fastest way to extract data from a huge text file?
Now I'm done: * less than a tenth of a second to read and parse the sample file (with the file in the system cache) * less t...

11 years ago | 2

| accepted

Answered
Unusual result when removing NaNs
Replace test2(~isnan(test2)); by test2(isnan(test2)) = []; which is the "standard" way to remove nans. ...

11 years ago | 1

Load more