Search Comments and Ratings

go

   
Date File Comment by Comment Rating
13 Feb 2015 findsubmat Finds one matrix (a sub-matrix) within another. Author: Matt Fig

Matt Fig (view profile)

Kotya Karapetyan

5
08 Sep 2013 Gaussian beam propagation through a series of thin lenses Propagates a Gaussian beam through a series of thin lenses Author: Natan

Natan (view profile)

Kotya Karapetyan

5
22 Jul 2013 local_time_to_utc Convert local time to UTC Author: Peter Tenenbaum Kotya Karapetyan

It's a pity I found this submission only after having written my own one (inferior to this one, since only working on Windows).

5
06 Feb 2013 Optical Fibre Toolbox Simulation of optical fiber modes Author: Kotya Karapetyan Kotya Karapetyan

I apologize that I cannot answer each comment here. The two-layer model implemented in the OFT has been thoroughly checked numerous times. It has been used for a couple of years now to compare against our results in various experiments. Plus it was used to verify the three-layer model, whenever possible. No mistakes have been found in the recent time, the two-layer code is stable. Therefore I am pretty sure there are no mistakes in that part of the code. Mistakes (typos) do occur in books and papers however. Also, different notations and/or assumptions can be made, e.g. concerning the coordinate system or polarisation direction.

Comment only
19 Nov 2012 Optical Fibre Toolbox Simulation of optical fiber modes Author: Kotya Karapetyan Kotya Karapetyan

Robert, I have just downloaded OFT from this page and run demo/oftDemo.m with Matlab 2009b and 2012b. In both cases it has completed without problems.

Comment only
23 May 2012 DataHash MD5 or SHA hash for array, struct, cell or file Author: Jan Simon

Jan Simon (view profile)

Kotya Karapetyan

It would be nice to be able to check the returned values against some public results. For example Wikipedia mentions MD5("") = d41d8cd98f00b204e9800998ecf8427e and MD5("The quick brown fox jumps over the lazy dog.")
= e4d909c290d0fb1ca068ffaddf22cbd0, and I don't know how to get the same from DataHash to check it.

Comment only
24 Apr 2012 Optical Fibre Toolbox Simulation of optical fiber modes Author: Kotya Karapetyan Kotya Karapetyan

harsimran, repeating the same question doesn't really help. Unless you provide details on what needs to be calculated, I cannot help you. If you don't know yourself, OFT will not be of help, neither will be Matlab.

Comment only
22 Apr 2012 Optical Fibre Toolbox Simulation of optical fiber modes Author: Kotya Karapetyan Kotya Karapetyan

harsimran, I am afraid I do not understand your question. What do you mean by "implementing OFDM" with OFT? What exactly do you need to calculate?

Comment only
20 Apr 2012 Optical Fibre Toolbox Simulation of optical fiber modes Author: Kotya Karapetyan Kotya Karapetyan

Mastel, you cannot "launch" the toolbox, it's a set of functions. There are a couple of examples in the demo folder.

Comment only
15 Apr 2012 Scalable Vector Graphics (SVG) Export of Figures Converts 3D and 2D MATLAB plots to the scalable vector format (SVG). Author: Juerg Schwizer

Juerg Schwizer (view profile)

Kotya Karapetyan

Have I found a bug? When trying to plot2svg a brushed plot, I receive Error in plot2svg (line 221) ... Error in plot2svg>line2svg (line 2237) if parts(1)~=1: Attempted to access parts(1); index out of bounds because numel(parts)=0. Can anyone suggest a solution on how to export just one part of a curve? I need it for showing zoom-in's.

5
19 Sep 2011 Optical Fibre Toolbox Simulation of optical fiber modes Author: Kotya Karapetyan Kotya Karapetyan

@choon soon: Sure. Just change the task for the modeField function in oftDemo.m.

Comment only
24 Jun 2011 Scalable Vector Graphics (SVG) Export of Figures Converts 3D and 2D MATLAB plots to the scalable vector format (SVG). Author: Juerg Schwizer

Juerg Schwizer (view profile)

Kotya Karapetyan

BUG REPORT:
Plot setting command

xlabel('Wavelength, nm', 'FontUnits', 'normalized', 'FontSize', 0.03);

causes plot2svg to crush with

??? Error using ==> plot2svg>convertunit at 2804
Unknown unit normalized.

4
20 Jan 2011 TCP/UDP/IP Toolbox 2.0.6 TCP/IP connections or UDP packets in MATLAB Author: Peter Rydesäter Kotya Karapetyan

I wonder if anyone could help me with compiling this at a Windows x64 platform? How do I do it? I am working on Windows 7 and I have never compiled any c-code in my life. Or may be someone just has this pnet compiled for x64?

Comment only
19 Jan 2011 TCP/IP Communications in Matlab Sends/receives TCP packets using Matlab's Java interface. Now handles matrices and cell arrays, etc. Author: Kevin Bartlett

Kevin Bartlett (view profile)

Kotya Karapetyan

I've found the problem: I was submitting int8('++addr'), but I should have submitted [int8('++addr') 13 10] to imitate CR.

5
19 Jan 2011 TCP/UDP/IP Toolbox 2.0.6 TCP/IP connections or UDP packets in MATLAB Author: Peter Rydesäter Kotya Karapetyan

5
19 Jan 2011 TCP/IP Communications in Matlab Sends/receives TCP packets using Matlab's Java interface. Now handles matrices and cell arrays, etc. Author: Kevin Bartlett

Kevin Bartlett (view profile)

Kotya Karapetyan

Hello,

I am trying to use this tool to control a GPIB device over Ethernet using a Prologix' GPIB-Ethernet controller. Somehow I fail so far.

E.g., this controller can accept the command '++addr' and return the address of the device it is controlling. With a terminal program (I am using PuTTY), I type in '++addr' and get '5' in return. I am trying the code:

JTCPOBJ = jtcp('REQUEST', '131.220.157.23', 1234)
jtcp('WRITE',JTCPOBJ,int8('++addr'))
mssg = jtcp('READ', JTCPOBJ)

in the hope to see the response, but get a 1-by-0 matrix in response. Can you see what I am doing wrong? The IP address and the port are exactly the same as with the terminal.

Comment only
24 Dec 2010 Optical Fibre Toolbox Simulation of optical fiber modes Author: Kotya Karapetyan Kotya Karapetyan

@Samuel: All hybrid modes are the solution of the same equation. The first solution is HEm1, second EHm1, third HEm2, fourth EHm2 etc. Therefore to know which exactly hybrid mode you have you just need to know the modal indices. I agree that this is not a very beautiful approach and will implement the direct HE/EH specification in the update.

Comment only
26 Nov 2010 Optical Fibre Toolbox Simulation of optical fiber modes Author: Kotya Karapetyan Kotya Karapetyan

Nicholas, this becomes more a general Matlab discussion than anything related to the toolbox, so if you will have further problems you should probably ask elsewhere. To answer your current question: you are misusing the function handles (in the line "r=@(y)...". Please take a look in the Matlab manual.

Comment only
24 Nov 2010 Optical Fibre Toolbox Simulation of optical fiber modes Author: Kotya Karapetyan Kotya Karapetyan

@Nicholas Tan: You can, but I believe there is an error in your code. The correct code would read:

J1 = @(x) besselj(0, x) - besselj(1, x) ./ x;
J = @(x) besselj(1, x);
f = @(x) x .* (J1(x) ./ J(x));
r = FindRoot(f, [0 10], 0.5)

Comment only

Contact us