Answered
2 Matlabs working together on one PC
The <http://www.mathworks.se/help/simulink/slref/tofile.html documentation> says: "The block writes to the output file increm...

12 years ago | 0

Answered
Large Text File Import
_"[...]textscan but it gave me only first 266 rows"_ Without seeing the error message it's difficult to say why that happened. T...

12 years ago | 0

Answered
Can REGEXP or TEXTSCAN be used to split 2 distinct data sets from a single text file?
Try this: %% str = fileread('your_file.txt'); %% ca1 = regexp( str, 'MSN_JET.+?(?=(MSN_SENSUM)|($))', ...

12 years ago | 0

| accepted

Answered
any way to avoid this loop?
See: <http://www.mathworks.se/help/matlab/ref/filter.html?searchHighlight=filter 1-D digital filter>

12 years ago | 2

| accepted

Answered
Parse a string between two similar expression
_lookaround_ seems to suite your need. %% text = '$ nbsp;words& nbsp;'; cac = regexp( text, '(?<=\$ nbsp;).+?(...

12 years ago | 0

Answered
Clearing a particular class definition from memory
|myclass.prop| is possible because |Constant=true|. It doesn't require the class to be in memory. |obj=myclass;| is not needed...

12 years ago | 0

| accepted

Answered
reading quoted strings with comma in a csv file
Try |textscan| in combination with '%q' String, where *_double_* quotation marks indicate text to keep together ...

12 years ago | 1

Answered
how to draw a sketch in gui and save that sketch as an image?
AFAIK: there is no such tool in Matlab. However, you might find <http://www.mathworks.com/matlabcentral/fileexchange/8262-freeha...

12 years ago | 0

| accepted

Answered
Subscript indices must either be real positive integers or logicals.
Learn how to use the <http://www.mathworks.com/matlabcentral/answers/87710#answer_97292 debugger>. It's good!

12 years ago | 1

Answered
How to re-open all the m.files
Unfortunately, there is not. However, in the File Exchange there are at least a couple of contributions, which try to help: ...

12 years ago | 0

Answered
Show an Image while GUI opens
Starting points: * Search <http://www.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&term=splash The File Exch...

12 years ago | 0

Answered
Can we creat editboxes in MATLAB GUI based on user input?
Yes! Start by reading <http://www.mathworks.se/help/matlab/creating_guis/about-the-simple-programmatic-gui-example.html About th...

12 years ago | 0

Answered
How to check if matlab window has focus
I guess you use Windows * download <http://technet.microsoft.com/en-us/sysinternals/bb545027 PsList> (better than tasklist) ...

12 years ago | 0

| accepted

Answered
time user input as soon as they start typing
Comments * |timer| is not appropriate for this job * |tic, str = user_inputs_data; user_time = toc;| should work How does...

12 years ago | 0

Answered
Where can I find documentation for the feature function?
Here: <http://undocumentedmatlab.com/?s=feature Undocumented feature() function>

12 years ago | 0

| accepted

Answered
How can I work around depfun(bar) bug: Matlab 64bit 2012B, on win7
depfun takes ages to search the sub-directories of matlabroot. There are several(?) depfun replacements in the FEX, which avoids...

12 years ago | 0

| accepted

Answered
Extract XData and YData from contourm hggroup handle
This approach should do it (despite I don't know neither contourm nor polybool ) * find the handles of the line-objects * us...

12 years ago | 0

Answered
How do I make an excel sheet?
Did you try doc xlswrite ?

12 years ago | 0

Answered
How can I import time histories from .HDF file?
Which release of Matlab do you use? |load_hdf_file| is it from the File Exchange? Why is it neither HDF4 nor HDF5?

12 years ago | 0

| accepted

Answered
error with results, matlab
See: <http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F Why is 0.3 - 0.2 - 0.1 (or...

12 years ago | 0

Answered
Combine a cell array of cell arrays to a cell array of numbers
You have a cell array of cell arrays of strings. Your strings consist of one and in some cases two characters. The solution, whi...

12 years ago | 0

Answered
How do find run time in Mat Lab?
See * <http://www.mathworks.com/help/matlab/ref/profile.html profile> * <http://www.mathworks.com/help/matlab/ref/tic.html t...

12 years ago | 1

Answered
Manipulating an anonymous function
I don't understand what you want to achieve, but >> myc = my_class(); >> x = myc.foo(5); >> x x = ...

12 years ago | 0

Answered
Generating structure name from a variable
No, you cannot. However, if all the baseballs have the same set of fields you might try something like: >> baseball.Name ...

12 years ago | 0

| accepted

Answered
How to plot real time data from text file
I've spend some time with a Matlab program (Windows 7), which communicates with another program by reading and writing text file...

12 years ago | 1

| accepted

Answered
Take minimum and maximum of columns for a 1x31 cell
Two comments * your solution looks ok to me * test with some synthetic data, the results of which you know

12 years ago | 0

| accepted

Answered
How to "dbup" to ORIGINAL error after try/catch and rethrow?
_"This is a hugely annoying problem"_. Yes indeed! I have a hard time to figure out how |dbstop if caught error error_id| i...

12 years ago | 0

Answered
processing text in matlab
* Your tags make me think about <http://www.mathworks.com/help/matlab/ref/perl.html?searchHighlight=perl Perl>, which comes with...

12 years ago | 0

Answered
Altering axes in subplot
Try this: function test() figure(1) a = zeros(11,11)+32; a([1,1,11,11],[1,11,1,11]) = 1; ...

12 years ago | 0

| accepted

Answered
GUI resize functionality and screen resolution
Some comments: * _"final result is still not perfect"_ but maybe it is good enough? A _"perfect"_ GUI is hardly possible with...

12 years ago | 1

Load more