Rank: 3250 based on 32 downloads (last 30 days) and 1 file submitted
photo

ejs

E-mail

Personal Profile:
Professional Interests:
image processing, information embedding

 

Watch this Author's files

 

Files Posted by ejs
Updated   File Tags Downloads
(last 30 days)
Comments Rating
26 Jun 2013 Screenshot QR Code encoder The QR Code encoder, based on Lior Shapira's work Author: ejs qr, barcode, xzing, zxing 32 0
Comments and Ratings by ejs View all
Updated File Comments Rating
26 Oct 2013 Scalable Vector Graphics (SVG) Export of Figures Converts 3D and 2D MATLAB plots to the scalable vector format (SVG). Author: Juerg Schwizer

Hi ANI,

you should learn Matlab:
plot2svg([fileName '.svg']);

18 Sep 2013 Scalable Vector Graphics (SVG) Export of Figures Converts 3D and 2D MATLAB plots to the scalable vector format (SVG). Author: Juerg Schwizer

Hi All,

i've also got a kickout at line 1630 with:

Matlab/Octave to SVG converter version 15-Sep-2012, Juerg Schwizer (converter@bluewin.ch).
Undefined function or variable "linex".

Error in plot2svg>axchild2svg (line 1630)
case {'square',
's'},group=group+1;patch2svg(fid,group,axpos,xmarker'*ones(1,5)+ones(length(linex),1)*[-1
-1 1 1 -1]*markersize,ymarker'*ones(1,5)+ones(length(liney),1)*[-1 1
Error in plot2svg>axchild2svg (line 2075)
group=axchild2svg(fid,id,axIdString,ax,group,paperpos,get(axchild(i),
'Children'),axpos,groupax,projection,boundingBoxAxes);

Error in plot2svg>axes2svg (line 1062)
group =
axchild2svg(fid,id,axIdString,ax,group,paperpos,axchild,axpos,groupax,projection,boundingBoxAxes);

Error in plot2svg (line 243)
group=axes2svg(fid,id,ax(j),group,paperpos);

I was exporting scatter plots to SVG.

The patch is to add the lines just after the line 1462:

% edited by ejs, 2013-09-18
linex = get(axchild(i),'XData');
% Octave stores the data in a column vector
linex = linex(:)';
if strcmp(get(ax,'XScale'),'log')
linex(find(linex<=0)) = NaN;
linex=log10(linex);
end

liney=get(axchild(i),'YData');
% Octave stores the data in a column vector
liney = liney(:)';
if strcmp(get(ax,'YScale'),'log')
liney(find(liney<=0)) = NaN;
liney=log10(liney);
end

linez=get(axchild(i),'ZData');
% Octave stores the data in a column vector
linez = linez(:)';
if isempty(linez)
linez = zeros(size(linex));
end
if strcmp(get(ax,'ZScale'),'log')
linez(find(linez<=0)) = NaN;
linez=log10(linez);
end
% end edited by ejs

Hope it will not negatively affect the entire code ;)

24 Jun 2012 QR Code encode and decode Functions to encode and decode a QR bar-code in images Author: Lior Shapira

Thanks to Gonzalo, i was able to get the code to work. Seems zxing made an Unexpected Update recently.
Besides, i've made it to use error correction hints

Contact us