Find Jobs
Hire Freelancers

MATLAB-to-Mathematica short conversion

$30-50 USD

En curso
Publicado hace casi 22 años

$30-50 USD

Pagado a la entrega
I have a 130-line function written in MATLAB which I need translated into Mathematica (version 4.1). It would also help if you were proficient enough in mathematics to help me understand this routine better. Its purpose is to perform a more advanced type of interpolation between multiple values. Since I'm not knowledgable about MATLAB, I'm not sure if the routine I'm providing for translation is dependent on other functions not provided. If so, I need to have them identified so I can find perhaps more MATLAB code that you would need to translate as part of this little project. If I like the work you do, I may ask you for a follow-on project where the code would be translated in C. Here is a code snippit from the actual code I need translated: function fi = invdisti(R,Ri,f,opt) % Defaults and parameters ............. tol = 1e-10; % Substitute for zero distance l_ch = 200; % Chunk length opt_dflt = 3; % 3 estimates (r^(-d-1), r^(-d-2), % r^(-d-3) % Handle input ........................ if nargin==0, help invdisti, return, end if nargin<3 error(' Not enough input arguments') end if nargin<4, opt = opt_dflt; end % Sizes and dimensions ................ sz = size(R); szi = size(Ri); if sz(1)==szi(1) & sz(2)~=szi(2) R = R'; Ri = Ri'; elseif sz(1)==szi(2) & sz(2)~=szi(1) R = R'; elseif sz(2)==szi(1) & sz(1)~=szi(2) Ri = Ri'; end [npb,d] = size(R); [npi,d] = size(Ri); % Option ......... if length(opt)>1 comp_coef = opt(:); else opt = max(opt,1); comp_coef = ones(ceil(opt),1); end comp_coef = comp_coef/sum(comp_coef); n_comp = length(comp_coef); szf = size(f); is_trp = 0; if szf(2)==npb & szf(1)~=npb, f = f'; is_trp = 1; end % Number of chunks n_chi = ceil(npi/l_ch); n_chb = ceil(npb/l_ch); % Initialize summation matrices .......... Sf = zeros(n_comp,npi); Sw = Sf; % Begin calculating distance matrices between % chunks of basis points and chunks of interpolation % points % For each chunk find distance matrix ************** for ji = 1:n_chi % Chunks of interp. points `````````0 % Get current chunk li = min(ji*l_ch,npi); i_chi = (ji-1)*l_ch+1:npi; ... ## Deliverables Complete and fully-functional working Mathematica source code which can take reasonable inputs and produce outputs for me to further experiment with. Complete copyrights to all work purchased. ## Platform Since Mathematica is a cross-platform IDE-type coding/execution environment, it doesn't really matter what machine you use. Your working code should work the same on my Macintosh. I run MacOS 9.1.
ID del proyecto: 2854509

Información sobre el proyecto

2 propuestas
Proyecto remoto
Activo hace 22 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
See private message.
$42,50 USD en 14 días
4,2 (7 comentarios)
3,5
3,5
2 freelancers están ofertando un promedio de $38 USD por este trabajo
Avatar del usuario
See private message.
$34 USD en 14 días
4,9 (91 comentarios)
6,0
6,0

Sobre este cliente

Bandera de UNITED STATES
United States
5,0
1
Miembro desde jun 5, 2002

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.