Login
Password
Sources on this Page

> Headlines by Category

 Home / Science / Mathematics

You are using the plain HTML view, switch to advanced view for a more complete experience.

GIGEACQ.m

Set Up and Acquisition from a gigethernet video camera (in this case a Baumer Camera). GUI is coded in english but display is in French. At this point the program can save the pictures as frames for short movies or for longer movies in avi format. Some updates coming soon to record longer films at slower frame rate. If you have problem or advice to improve the program please let me know. But remember this is still work in progress so be kind with me ^^

Re: "Bad version or endian-key"?
Eric Zhang" <ericzhangxiuming@gmail.com> writes:

> Edric M Ellis <eellis@mathworks.com> wrote in message <ytwoawhanxq.fsf@uk-eellis-deb7-64.dhcp.mathworks.com>...
>> "Eric Zhang" <ericzhangxiuming@gmail.com> writes:
>>
>> > I am working on parallelization MATLAB computing. Strangely enough, my
>> > code sometimes works and sometimes fails, although untouched, with the
>> > following error.
>> >
>> > Error using parallel.internal.pool.deserialize (line 9)
>> > Bad version or endian-key
>> > [...]
>>
>> Hm, this is definitely not expected. Usually errors like this occur when
>> the data transfer between the workers and the MATLAB client is truncated
>> or corrupted in some way.
>>
> Hey Edric, thanks a lot for the reply, but I really tried my best to
> create a self-contained code that reproduces this error, but failed,
> because it actually involves calling the external software COMSOL.
>
> Although COMSOL is involved, I still believe this error comes from
> MATLAB parallel, because once I change parfor to normal for, it runs
> without any errors for days.
>
> By the way, I am on school's HPC, which means that the several workers
> may span over several nodes. Does that matter? After all, it works for
> hours before this error pops up,

Are you using an interactive parallel pool to do this, or is everything
running on the cluster inside e.g. a 'batch' job? If you are using an
interactive pool, it might be worth trying a 'batch' job instead as then
there will be no communication from your host to the remote cluster.

If you haven't used it before, the batch reference page is here:

<http://www.mathworks.com/help/distcomp/batch.html>

and you'll want to do something like

c = parcluster(...); % get your HPC cluster
j = batch(c, @myFunction, 2, {args}, 'Pool', 15);

where 'myFunction' contains your PARFOR loops etc.

Cheers,

Edric.
sum of X numbers
I have to find the X value for which sum_(i =1)^X (i * a_i ) >= B .
Here, a_i & B are known.

For find X value; is there any explicit formula?
If anyone knows, please answer.

Thank you very much,
kalpana
reg. summation
I have to find the X value for which ?_(i =1)^X (i * a_i ) ? B .
Here, a_i & B are known.

For find X value; is there any explicit formula?
If anyone knows, please answer.

Thank you very much,
kalpana
Re: Cannot set figure position to extend beyond screen
Under Windows I use this FEX http://www.mathworks.com/matlabcentral/fileexchange/31437-windowapi from Jan Simon

I get satisfied results. Here is the high light of my code:

 MonitorPositions = get(0,'MonitorPositions');
    disp(MonitorPositions);
    try
       % Handle Multiple monitors
        MonitorPositions = MonitorPositions(SDPM_FullScreen,:);
    end
    FullScreenFig = figure(10);
    clf(FullScreenFig);
    
    ClMap = flipud(jet_cmap);
    Clim_MainAxe = [0 ColorUpperLimit];
    
    set(FullScreenFig,'Position', MonitorPositions);
    WindowAPI(FullScreenFig, 'maximize');
    WindowAPI(FullScreenFig, 'position', 'full');
    MainAxe = axes('Parent', FullScreenFig);
    set(MainAxe, 'unit', 'normalized', 'position', [0 0 1 1]);
Re: Cannot set figure position to extend beyond screen
On 07/27/2014 10:14 PM, adam lester wrote:
...

> set(gcf,'Unit','Normalized','Position',[0,0,1,1]);
> will sometimes allow me to extend the figure outside the screen such
> that only the axes is visible (which would work fine for my needs),
> however it does not work on the Windows 7 computer I am actually using
> to run the four projectors. I am not certain why this works on some of
> the Windows 7 computers I have tested it on and not others. I have tried
> it on a Windows 7 32 and 64 bit computer with MATLAB 2013a on both. For
> instance, if I run this I typically still see the bar at the top of the
> window with the little MATLAB icon. If I then do:
> get(gcf,'Position');
> I typically get:
> 0 0 1.0000 0.9389
> It seems as though the height parameter is being constrained to keep the
> figure bounds within the screen.
...

Typically such differences are things like different graphics
cards/drivers and sometimes the renderer in effect can make a difference.

--
Cannot set figure position to extend beyond screen
I need to display an image which will extend across four projectors, each with a resolution of 1280 x 800 pixels. I am using MATLAB to display a saved FIG file at 5120 x 800 such that only the image contained in the axis will be projected - in other words, no part of the figure window border will be visible.

I have searched around a good deal and have not been able to find a way to remove the bar from the figure window. Using following leaves me with everything excluded from the figure window but the bar with the MATLAB icon:
set(gcf, 'ToolBar','none','MenuBar','none','NumberTitle','off');

The following:
set(gcf,'Unit','Normalized','Position',[0,0,1,1]);
will sometimes allow me to extend the figure outside the screen such that only the axes is visible (which would work fine for my needs), however it does not work on the Windows 7 computer I am actually using to run the four projectors. I am not certain why this works on some of the Windows 7 computers I have tested it on and not others. I have tried it on a Windows 7 32 and 64 bit computer with MATLAB 2013a on both. For instance, if I run this I typically still see the bar at the top of the window with the little MATLAB icon. If I then do:
get(gcf,'Position');
I typically get:
0 0 1.0000 0.9389
It seems as though the height parameter is being constrained to keep the figure bounds within the screen.

My goal is to switch between displaying one of two 5120 x 800 images with no visible figure window borders. I will be switching between the images using, for example, figure(h1) and figure(h2). I am open to a less straight forward work around to display and switch between my two images in a "full screen" format, but it is part of an experimental control, so whatever I use needs to be reasonably fast and reliable - i.e., minimal lag and/or jitter between when the command to switch images is sent and when the image displays on the four projectors.

Hope this is clear, and thank you for any help on this.
Re: Pointwise multiplication of matrix with vector
Excellent.
Somebody knows the same for matrix multiplication? mtimes?
Thanks!
Re: Commercial License
Erdem
On http://www.mathworks.com/products/compiler/ it says "Applications and libraries created with MATLAB Compiler use the MATLAB Compiler Runtime, which enables royalty-free deployment to users who do not have MATLAB."

But here is the official Mathworks Answer: http://www.mathworks.com/matlabcentral/answers/89168-matlab-engine-without-matlab-license#answer_125028
Re: Specular reflection removal.
kwan karmeng

Go to Answers ( http://www.mathworks.com/matlabcentral/answers/ ) and ask. Be sure to attach your image. Someone (maybe it was you) was just asking about this.
Post Selected Items to:

Showing 10 items of about 1300

home  •   advertising  •   terms of service  •   privacy  •   about us  •   contact us  •   press release design by Popshop •   Official PR partner B2BLogger.com •   © 1999-2014 NewsKnowledge