Search Comments and Ratings

go

Comments and Ratings

   
Date File Comment by Comment Rating
20 Nov 2009 Supersmoother Friedman's supersmoother algorithm Author: Douglas Schwarz Kotliarov, Yuri

Hi Doug,
Interesting algorithm. Can it be used to smooth unperiodic step function?

20 Nov 2009 mmread Read virtually any media file in Windows, Linux, or Mac. Author: Micah Richert Dino

Hi Micah,
   i´m using IP - camera Airlive Ovislink, which sends out only JPEG stream and can be played with web browser or some IP View software. I am wondering if it is possible to use your kit to generate stream video in Matlab and possibly to use it in real time in some advanced Blockset such Video and Image Processing. I was only succesful to get slow image stream to Matlab with use of imread('http://192.168.1.25/image.jpg') and its cycle in time. But this is really quite slow solution and not sufficient.
I really couldn´t find solution anywhere, so i appreciate any advice. Thanks in advance!

20 Nov 2009 Surface Curvature Vectorized surface curvature computation Author: Daniel Claxton Zhang, Jason

Cool, see how it works!

20 Nov 2009 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Woodford, Oliver

Bob:
set(gcf, 'color', 'none'); % Set the figure background to transparent
set(gca, 'color', 'none'); % Set the axes background to transparent

20 Nov 2009 image segmentation using iterative watersheding plus ridge detection image segmentation for grid-pattern Author: Li CHEN Saberi, Alireza

20 Nov 2009 Datetick with zooming panning and subplots Date formatted tick labels, automatically updated when zoomed or panned. Author: Andrew Bliss David

With regard to the program failure when a legend handle is found, I changed the "&&" to "&" on line 60 and changed the "Legend" to "legend" on line 61 and the program properly neglects the legend handle.

20 Nov 2009 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Bob

Wish I had found this great script sooner!

Can someone tell me how to set the color property to 'none'. If you set edit figure and then use the property editor you only get an option for color (e.g. a palette), you can't type in 'none'. I'm missing something obvious here, can someone please help me with this.

20 Nov 2009 Centered coordinate axes in 2D plots Takes the current coordinate axes (with ticks and labels) and draws new ones centered at the origin. Author: Johan Carlson Liverpool, Mario

Thank u Johan, I downloaded "centeraxes", it solved my problem.
How do I get the axes ticked from -1 to 1 please? now it's ticked only from -0.9 to 0.9.
Thanks again
Mario

20 Nov 2009 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Bob

20 Nov 2009 SendMailGUI Sendmail GUI Author: Marko Neitola Neitola, Marko

Thanks Nathan for comments. I guess most people prefer gray background. In the latest version the colors (bg/fg) are easy to customize.

20 Nov 2009 rex: a pedestrian regular expression operator synopsis generator rex prints a synopsis of the current regular expression operator syntax Author: us Danilo

20 Nov 2009 Edge Detection and Segmentation Edge Detection Prewitt Roberts Log Canny Sobel Straight Line Hough Transform quadree region growing Author: Madhu S. Nair Saberi, Alireza

tnx

20 Nov 2009 Fast Eyetracking Extract feature points from faces to track eye's movement Author: Peter Aldrian Mauricio

20 Nov 2009 Fast Eyetracking Extract feature points from faces to track eye's movement Author: Peter Aldrian Mauricio

We are working on a project called I-JAUS (please look for videos about it). We would like to add to our installation package your work, because it is perfect for showing how to control a robotic arm with the eyes.
Could you authorize us? Of course we'll keep your licence headers, and mention all of you in our acknowledgement sections (thesis report, and I-JAUS package).

Regards,

Mauricio Jost
Estudiante de Ing. en Computación
FCEFyN - UNC - Argentina

20 Nov 2009 JSBSim S-Function 1.0 S-Function version of JSBSim 1.0 release candidate. Non-linear flight model for Simulink. Author: Brian Mills Mills, Brian

Gernot,

So the error occurrs when you "push" the "Initialize Model Parameters" button? If that is the case, then it is not the mex function. If the error throws when you try to run the model, then perhaps it could be the mex. Could you clarify for me?

BTW, your path(s) look correct.

Sorry that you are having trouble with it. Please be patient and I will try my best to get you up and running.

Thanks for downloading the SFunction!

20 Nov 2009 Classical Pairs Trading Using MatLab Performs the classical pairs trading strategy over a matrix of prices. Author: Marcelo Perlin Perlin, Marcelo

Hi Sahinder,

HAve a look in matlab help files. There you can find all the information about importing xls data into matlab.

Cheers.
Marcelo.

20 Nov 2009 WCDMA FDD uplink M-files wcdma mallab M-files and source code Author: ahmed jad elrab Al.tholaya, Azal

hi... im thinking of doing the topic for my FYP
could u plz email me the codes and the research for it or anything related to it...
it would help me alot.

ymn29@yahoo.com

thanx :)

20 Nov 2009 Quaternion Library for Simulink A library of blocks for manipulating quaternions. Author: Jay St. Pierre Bindemann, Alan

Overall a nice package. However, I found several issues with the DCM to quaternion block. The block is not designed to accept a [3x3] signal dimension, rather, it expects a 9 element vector. Also, if one uses a reshape on a [3x3] vector to recast is as the 9 element vector one needs to transpose the [3x3] first since the 9 element vector is unpacked in row order, rather than the Simulink standard of column order.

Also, the quaternion to DCM block outputs the DCM in row-order, which requires a reshape and transpose to recast as a usable [3x3] signal.

Also several of the blocks use Mux blocks as bus creators improperly which will generate errors if strict bus modeling is enabled.

20 Nov 2009 clipboardpaste Copies data from clipboard and pastes into workspace. Author: Bryan Raines Hijzen, Toby

i second that

20 Nov 2009 Clustering Toolbox The toolbox provides four categories of functions. Author: Janos Abonyi Mohammed El-Said

Great job;
It realy helped me,
Thanks.

20 Nov 2009 Fast 2-D convolution Speeds up many 2-D convolutions using the SVD; also finds a fast approximation in other cases. Author: David Young James

I'm fairly sure this used to have loads of 5* comments? Anyway, this script is great. The increase in speed over conv2 for me was 10 times. Really easy to use - outstanding!

20 Nov 2009 Algorithmic Trading with MATLAB - 2009 update M-file scripts and Simulink models from webinar on 28 May 2009 Author: Aly Kassam Roji

Now I see... it does not use transaction costs: we sholud use:

pnl = ([0;x(2:end).*sig2(1:end-1)]);

instead of:

pnl = ([0;x(2:end).*sig2(1:end-1)-abs(diff(sig2))*0.000028]);

Wasn't it?

Thanks a lot

20 Nov 2009 JSBSim S-Function 1.0 S-Function version of JSBSim 1.0 release candidate. Non-linear flight model for Simulink. Author: Brian Mills Gernot

Dear Brian,

I appreciate your work and your short response time.

1) this will be no problem
2) JSBSim downloaded, folder renamed to JSBSim and placed in
JSBSim_SFunction_GUI;
e.g. the path to 'f22' is: <here a long path>\JSBSim_SFunction_GUI\JSBSim\aircraft\f22
I've made <<here a long path>\JSBSim_SFunction_GUI> the current directory in Matlab and startet the GUI, loaded the model file, but the "init. model param." does throw the error mentioned.

SYSTEM: WinXP, Matlab 2009a; the same error occurs with Matlab 2008b

I fear the problem is inside the mex; or are some special dll's required (from VS2008 probably?)

Regards, Gernot.

20 Nov 2009 xlsread.m for faster data transfer This modified version makes the original xlsread.m faster and also allows add-ins to be loaded. Author: Antonio Danila

Thank you, Ivo. Your suggestion helped me - I also use xlsread1 from another function.

20 Nov 2009 Process named Arguments Easily add optional, named arguments to your functions, like this: f('var_name', value). Author: Alan Robinson Simon, Jan

In my opinion, this will handicap the debugging drastically, because it hides the source of values.

Checking the existence of a variable with "exist('Name')" is slow and fails if a matching file, folder, class name or built-in function exists. Safer and faster: "exist('Name', 'var')". At least it is a good idea to include this test: Allow JIT compilation, avoid collisions between variables and built-in functions (can appear even for different upper/lower-case).

20 Nov 2009 plot2eps Function to streamline the workflow of converting plots to eps files for inclusion in LaTeX. Author: Mark Verveld Jakobsen, Peter

20 Nov 2009 Latexsyms Tools for the easy conversion and display of symbolic expressions using latex Author: Zebb Prime Prime, Zebb

Hi Colin,

Thanks for the info. I also found a few other issues with the MuPAD engine, but think I have it working properly now. It'll be available as soon as it is approved.

Cheers,
Zebb

19 Nov 2009 Implementation of md5 Algorithm Occupying Less Memory and takes only 1.35 seconds In this algorithm constant datas are created by logic thus occupies less memory. Author: sri devi Jain, Lokesh

19 Nov 2009 2D/3D image segmentation toolbox 2D/3D image segmentation using level-set based active contour/surface with AOS scheme Author: Yan Zhang Kararg, Alex

Cannot compile running the compile_mex_codes.m . The output is :

expr: syntax error
/Applications/MATLAB_R2008a/bin/util/mex/mexutil.sh: line 13: [: too many arguments
ld warning: duplicate dylib /Applications/MATLAB_R2008a/bin/maci/libz.1.dylib
ld warning: duplicate dylib /Applications/MATLAB_R2008a/bin/maci/libz.1.dylib
ld warning: duplicate dylib /Applications/MATLAB_R2008a/bin/maci/libz.1.dylib
ld warning: duplicate dylib /Applications/MATLAB_R2008a/bin/maci/libz.1.dylib
ld warning: duplicate dylib /Applications/MATLAB_R2008a/bin/maci/libz.1.dylib
BinaryHeap.h: In member function 'void CBinaryHeapMinSort<IndexType, WeightType>::Insert(IndexType, WeightType) [with IndexType = int, WeightType = double]':
ac_distance_transform_3d.cpp:27: instantiated from 'void DistanceTransform3D(const InputType*, OutputType*, const int*) [with InputType = unsigned char, OutputType = double]'
ac_distance_transform_3d.cpp:115: instantiated from here
BinaryHeap.h:56: error: no matching function for call to 'std::exception::exception(const char [1])'
/usr/include/c++/4.0.0/exception:57: note: candidates are: std::exception::exception()
/usr/include/c++/4.0.0/exception:55: note: std::exception::exception(const std::exception&)

    mex: compile of ' "ac_distance_transform_3d.cpp"' failed.

??? Error using ==> mex at 207
Unable to complete successfully.

Error in ==> compile_mex_codes at 7
mex ac_distance_transform_3d.cpp

Any help to run the compile_mex_codes.m would be really appreciated. Thank you!

19 Nov 2009 JSBSim S-Function 1.0 S-Function version of JSBSim 1.0 release candidate. Non-linear flight model for Simulink. Author: Brian Mills Mills, Brian

Gernot,

1) The "no models (not yet working)" message in the AC model selection pane is because that function has not yet been completed. You can however type in the model names in the "AC _Name" text box.
2) You must download JSBSim seperately as in my instructions and place the JSBSim folder in exactly the location specified, otherwise, you will not have any aircraft files to load (AC model files are in the JSBSim download.)

Please first confirm that you have downloaded JSBSim and placed its folder in the JSBSimSFunction_GUI folder (the one that is populated with files) and then test and let me know the results. I compiled this version slightly differently (to run a bit faster,) so I am hoping that it is not the cause of the "Invalid MEX-file." Other users have successfully run my previously compiled versions with R2009a.

Regards,
Brian

19 Nov 2009 Classical Pairs Trading Using MatLab Performs the classical pairs trading strategy over a matrix of prices. Author: Marcelo Perlin ?ahinder

Hello Marcelo,
I am student in Turkey, at Istanbul Technical University.And I have a problem about to create mat-file . I must to use my excell data .How can I solve this problem. I think that "Creating Mat file in C "; but I can not solve my problem because I don't have enough source . Could you help me?? Thanks for your all attention.

Şahinder Kaya
İstanbul Technical University

Mathematics Engineering
kayasah@itu.edu.tr

19 Nov 2009 Classical Pairs Trading Using MatLab Performs the classical pairs trading strategy over a matrix of prices. Author: Marcelo Perlin ?ahinder

And I have a problem about to creating mat-file . I must to use my excell data .How can I solve this problem. I think that "Creating Mat file in C "; but I can not solve my problem because I don't have enough source . Could you help me?? Thanks for your all attention.

Şahinder Kaya
İstanbul Technical University

Mathematical Engineer

kayasah@itu.edu.tr

19 Nov 2009 antenna array software This software plot pattern of array antenna software. Author: ehsan&behzad soleimani nasab&ahmadi wega51

??? Error using ==> load
Unable to read file antena1.fig: No such file or directory.
etc.

Incomplete script? Please copy a stand-alone version of this script. Thanks in advance.

19 Nov 2009 SendMailGUI Sendmail GUI Author: Marko Neitola Greco, Nathan

Just an aesthetic note: The color is Terrible. Choose something less intrusive...

19 Nov 2009 degrees and radians Two helper functions, one converts degrees to radians, the other rads to deg. Author: Richard Medlock Medlock, Richard

Duane - yes you are probably correct, the original calculation however was done differently and was shorter. However, the benefit for me personally is two fold - 1) it makes it easier to troubleshoot the code because it's more readable and 2) repetitive calculations are generally best kept as functions which enable you to more easily find and replace them, and avoid mistakes in typing out duplicate code. But everyone has their own preferred way of doing things.

19 Nov 2009 Bluetooth voice transmission Bluetooth Voice Transmission Author: Stuart McGarrity McGarrity, Stuart

This model was only tested with the MATLAB release listed above (7.0.1) and a few others. A version of this model which works with the current release of MATLAB and Simulink is shipped with the Communications Blockset called commbluetoothvoice.mdl

Enter at the command line:
>>commbluetoothvoice

19 Nov 2009 Bluetooth voice transmission Bluetooth Voice Transmission Author: Stuart McGarrity Cooley, Jarred

I am also having trouble running this demo. It fails every time. Is there an updated simulation that works?

Thank you very much

19 Nov 2009 DirectShow (DirectX) based Video file reader read image frames into matlab from Video (rmvb, avi, etc) in Windows Platform Author: Lei Wang Maier, Andreas

Problem:
Hi, thanks for the great program. It works for about 2000frames read in a loop in my videos (which contain about 9000 uncompressed avi frames). But then i can see that matlab eats more and more memory until it interrupts. BUT: this is only the case in this program:
try
            output_picture = frame2im(aviread(filename_in,framenumber));
catch
    [avi_hdl, avi_inf] = dxVideoOpen(filename_in);
    pixmap = dxVideoReadMex(avi_hdl, framenumber);
    img = reshape(pixmap,[avi_inf.Height,avi_inf.Width,3]);
    dxVideoCloseMex(avi_hdl);

    output_picture = img;
end
If i remove the try, catch , end and the aviread command, there's no problem.

Is there any possibility to first try to read the frame with aviread (as it is very fast) and only use dxVideo if aviread fails?

Thanks a lot! I really would like to use your script as it is much faster than mmread.

19 Nov 2009 ncx, NetCDF eXplorer Interface for NetCDF visualisation Author: M MA Schneider, David

Does anyone know what the scripts in the /private directory are for and why it's named as such? Private directories are not allowed in the Matlab path, so how are the scripts in this directory to be used? Thanks for your help - seems like a great program so far.

19 Nov 2009 Enhanced Input Dialog Box Predefined dialog box function to accept user inputs of several forms Author: Kesh Kesh

Andreas,

Thanks for the bug report (and I'm a little embarrassed by such blatant bugs in my very demo...).

I fixed the bugs, added a couple more features, and uploaded the updated files.

19 Nov 2009 image processing basic programs Author: Jigar mori Ahmed, Kumail

19 Nov 2009 JSBSim S-Function 1.0 S-Function version of JSBSim 1.0 release candidate. Non-linear flight model for Simulink. Author: Brian Mills Gernot

I could not test it. Should it run on Matlab2009a?
1) no models are selectable in the gui: .. (not yet working)
2) initialize model parameters: ERROR:
??? Error using ==> JSBSimGUI>init_model_Callback at 1774
Error due to multiple causes:
--> Invalid MEX-file
'C:\E_Data\Lehre\FUP\F0902_AirbugSimpleControl\subJSBSimSimulink\JSBSim_SFunction_GUI\JSBSim_SFunction.mexw32':
Diese Anwendung konnte nicht gestartet werden, weil die Anwenungskonfiguration nicht
korrekt ist. Zur Problembehebung sollten Sie die Anwendung neu installieren.

19 Nov 2009 Two-way repeated measures ANOVA Two-way repeated measures ANOVA, for designs with two within-subjects variables. Author: Aaron Schurger Negar

Hi,

Can someone give me a one line example of how to enter FACTNAMES? I'd appreciate it.

19 Nov 2009 f2matlab Converts basic fortran90 source code to MATLAB source code. Author: Ben Barrowes Hastiepen

I know nothing about Fortran, and had to convert some code into Matlab. The conversions that f2matlab made helped me immensely to give me a starting point. Many thanks!

19 Nov 2009 readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. Author: Peder Axensten Hastiepen

After spending all day on the forums trying to figure out how to read a text file into a cell array and then convert it into a matrix, I found this which did everything I needed it to in one go - Excellent piece of work, thank you very much!

19 Nov 2009 Truth Table Generation This function simply computes the truth table for a given number of variables. Author: Mahendra Jos

The pre-allocation and the use of logicals is certainly an improvement. Next try to improve the help section. See any standard function for inspiration how to set up such a comment section, for instance, DISP or MEAN. Also take a look at LOOKFOR to learn about H1 lines.

19 Nov 2009 Enhanced Input Dialog Box Predefined dialog box function to accept user inputs of several forms Author: Kesh Greuer, Andreas

The concept looks nice and quiet flexible.

But there are still some bugs in.
The Cancel is not indicated and gives just the default values back.
For an edit field comes not the text entered in the field, but a crazy structure (in the example the field "Name")
The answer gives back default instead of the new changed values. (in the example the field "SSN")

19 Nov 2009 bch and reed-solomon decoder simulation simulation of binary and non-binary bch decoder Author: wei liu P, xyz

Thank you very much for posting this.It is really very helpful to implement bch decoder in hardware.I am new to matlab.So please tell me how to change the syndrome values?

Thanks in advance

19 Nov 2009 bch and reed-solomon decoder simulation simulation of binary and non-binary bch decoder Author: wei liu P, xyz

19 Nov 2009 Compression Routines Compress Matlab variables in the workspace. (supports cells, structs, matrices, strings, objects) Author: Jesse Hopkins Sebastiaan

Returning on the issue for compressing large matrices, I made the following patch. It chunks byteData into blocks of 5MiB, and write the output to a structure, which has some information about chunksize and the size of the uncompressed byte array.

The amount of heap space available for compression is rather unpredictable. Sometimes 10MiB blocks were too large. The command 'java.lang.Runtime.getRuntime.freeMemory' does not return a usable value either.

The use of a structure produces an extra overhead of 736 bytes compared to your current version. This can be significantly reduced to 24 bytes if the blocksize/uncompressed size information is stored in the byte array as well. However, I found this method more clear, and the overhead is minimal for larger data, which cannot be compressed currently.

The CompressLib.test shows that all compressions were succesful.

The only thing which cannot be compressed now are sparse matrices. (I have got something working, but I have no idea how to get it compiled on windows, so I do not want to submit it on the FX now.)

Many thanks for your work! It helped me solving a lot of memory issues.

Sebastiaan

Patch:
diff old/CompressionLib/CompressLib.m new/CompressionLib/CompressLib.m
43c43
< function out = decompress(byteArray)
---
> function out = decompress(compressedData)
46c46
< % out = CompressLib.decompress(byteArray)
---
> % out = CompressLib.decompress(compressedData)
48,49c48,49
< % Function will decompress "byteArray" (created by CompressLib.compress).
< % "byteArray" must be a 1-D array of bytes (uint8).
---
> % Function will decompress "compressedData" (created by CompressLib.compress).
> % "compressedData" must be a compression structure.
59,71c59,77
< if ~strcmpi(class(byteArray),'uint8') || ndims(byteArray) > 2 || min(size(byteArray) ~= 1)
< error('Input must be a 1-D array of uint8');
< end
<
< %------Decompress byte-array "byteArray" to "byteData" using java methods------
< a=java.io.ByteArrayInputStream(byteArray);
< b=java.util.zip.GZIPInputStream(a);
< isc = InterruptibleStreamCopier.getInterruptibleStreamCopier;
< c = java.io.ByteArrayOutputStream;
< isc.copyStream(b,c);
< byteData = typecast(c.toByteArray,'uint8');
< %----------------------------------------------------------------------
<
---
> if isstruct(compressedData) && ~isfield(compressedData, 'compressed') && ~isequal(compressedData.compressed, 'GZIP')
> error('Input must be a compression structure.');
> end
>
> % Reserve memory
> byteData = zeros(compressedData.UncompressedSize, 1, 'uint8');
>
> % Decompress data in chunks
> for Iter=1:length(compressedData.Data)
> %------Decompress byte-array "byteArray" to "byteData" using java methods------
> a=java.io.ByteArrayInputStream(compressedData.Data{Iter});
> b=java.util.zip.GZIPInputStream(a);
> isc = InterruptibleStreamCopier.getInterruptibleStreamCopier;
> c = java.io.ByteArrayOutputStream;
> isc.copyStream(b,c);
> byteData((Iter-1)*compressedData.BlockSize+1:min(Iter*compressedData.BlockSize, length(byteData))) = typecast(c.toByteArray,'uint8');
> %----------------------------------------------------------------------
> end
>
74d79
< end
76c81,83
< function byteArray = compress(in)
---
> end
>
> function compressedData = compress(in)
79c86
< % byteArray = CompressLib.compress(in)
---
> % compressedData = CompressLib.compress(in)
88c95
< % Outputs an array of type uint8. Use CompressLib.decomress to decompress
---
> % Outputs a compression structure. Use CompressLib.decomress to decompress
98,106c105,120
< %-------compress the array of bytes using java GZIP--------------------
< f=java.io.ByteArrayOutputStream();
< g=java.util.zip.GZIPOutputStream(f);
< g.write(byteData);
< g.close;
< byteArray=typecast(f.toByteArray,'uint8');
< f.close;
< %----------------------------------------------------------------------
< end
---
> % Compress data in chunks
> compressedData.compressed = 'GZIP';
> compressedData.BlockSize = 5*1024^2; % Make 5 MiB chunks
> compressedData.UncompressedSize = length(byteData);
> compressedData.Data = cell(ceil(compressedData.UncompressedSize/compressedData.BlockSize), 1);
> for Iter = 1:length(compressedData.Data)
> %-------compress the array of bytes using java GZIP--------------------
> f=java.io.ByteArrayOutputStream();
> g=java.util.zip.GZIPOutputStream(f);
> g.write(byteData((Iter-1)*compressedData.BlockSize+1:min(Iter*compressedData.BlockSize, compressedData.UncompressedSize)));
> g.close;
> compressedData.Data{Iter}=typecast(f.toByteArray,'uint8');
> f.close;
> %----------------------------------------------------------------------
> end
> end

 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com