C# code from Matlab
Budget $30-250 USD
Job Description:
Hello,
is there someone who has experince with Matlab and C#.
I need a formula or method for C# from Matlab file on following.
MATLAB CODE:
function [Y,B,C] = xyz2ybc(Xc,Yc,Zc,R)
if( (length(Xc) ~= length(Yc)) | (length(Xc) ~= length(Zc)) )
error('X,Y,Z are not the same size');
end
if(nargin == 3)
% set the bend radius to zero for all bends.
R = zeros(1,length(Xc)-2);
elseif(length(R) == 1)
% set the bend radius to R for all bends.
R = ones(1,length(Xc)-2).*R;
elseif(length(R) ~= length(Xc)-2)
error('R size doesnt match the number of bends');
end
% number of bends is less than the number of XYZ points by 2.
for i = 1:length(Xc)-2
% calculate the 2 vectors BA and BC, representing an angle ABC.
V1 = [Xc(i)-Xc(i+1) ; Yc(i)-Yc(i+1) ; Zc(i)-Zc(i+1)];
V2 = [Xc(i+2)-Xc(i+1) ; Yc(i+2)-Yc(i+1) ; Zc(i+2)-Zc(i+1)];
% calculate the length of vectors BA and BC.
V1l = Vlength(V1);
V2l = Vlength(V2);
% calculate the angle between the 2 vectors BA and BC.
C(i) = pi - acos(dot(V1,V2) / (V1l*V2l));
% calculate the vector perpendicular to the plan ABC.
planeV(i,:) = cross(V1,V2)';
if(i>1)
% calculate the length of the straight by subtracting the tangent of
% the bend angle.
Y(i) = Y(i) - R(i)*tan(C(i)/2);
Y(i+1) = V2l - R(i)*tan(C(i)/2);
% calculate the length of vectors perpendicular to the plan ABC and
% the plan of the bend before it.
PV1l = Vlength(planeV(i-1,:));
PV2l = Vlength(planeV(i,:));
% calculate the rotation direction. negative if counter clockwise.
s=sign(V1 .* cross(planeV(i-1,:),planeV(i,:))');
% calculate the rotation angle and multiply by the rotation direction.
B(i) = acos(dot(planeV(i-1,:),planeV(i,:))/(PV1l*PV2l))*s(1);
else
% calculate the length of the straight by subtracting the tangent of
% the bend angle.
Y(i) = V1l - R(i)*tan(C(i)/2);
Y(i+1) = V2l - R(i)*tan(C(i)/2);
% rotation of the first bend is always zero.
B(i) = 0;
end
end
% calculate the length of a 3D vector.
function l=Vlength(V)
l = sqrt(V(1)^2 + V(2)^2 + V(3)^2);
25 freelancere byder i gennemsnit $120 timen for dette job
Hello, good time Hope you are doing well I'm expert in MATLAB/Simulink, Python, JavaScript and C++ programming and by strong mathematical and statistical background, have good flexibility for solve your project. I hav Flere
Hi there, ★★★ MATLAB / C / C++ / C# Expert ★★★ 8+ Years of Experience ★★★ I've read requirements and ready to create formula. You are at the perfect place to get your work done. Our team have hands-on expertise on fol Flere
Hi, we have developed more projects based on MATLAB and C#. Expert in App designer, MATLAB to C# convertor. if you need any query related to this project, kindly contact through chat, thank you
Hi there yeah I am expert in C# and I can help you out for sure kindly send me a message we'll discuss further Looking forward to hear you Thank you
We are a team of experts with substantial background in ELECTRICAL and ELECTRONICS Engineering working on MATLAB and Python, we have successfully completed 1000+ Projects for multiple regular clients from OMAN, UK, USA Flere
Hi. How are you? I have just read your proposal and I am sure I can convert the project on time. I am a mathematician who has 15 years of experiences in Numerical Analysis using Matlab/Python/C/C++/C#, .... Please con Flere
Hello I can do this. Please share the details of the task so that I can check and confirm accordingly.
Hi there, It's Noman here and, I can help you with the code from matlab. Contact me now to get started! Thanks. Regards Noman
Hello there, hope you're doing well. I have gone through your job posting and requirements. I can do you job easily. I have good expertise and experience in the field of Matlab environment and c programming. Please ge Flere
Hi, I have years experience with Matlab, also 10+ years experience work with C#. Would you mind sending me a message so we can discuss? Regards, Nguyen
Hi, Dear Employer, I am interested in your project – “C# code from Matlab”. I have read your whole Project description carefully and understand your requirements well. Now I can say with confident that I can do it perf Flere
Hey, I am Electronic Engineer and have Expertise in C Programming, Mathematics, Matlab and Mathematica, C# Programming and Algorithm: I'm Full Stack Designer in Electrical Circuit designing, PCB Prototyping, Microcontr Flere
Greetings. I have a rich experience in Matlab and C# and can easily change the code you send. Let me know if you are interested in working with me. Best Regards
Hello, I'm interested in your project. I can deliver you a high-quality product using my expertise. contact me to discuss all details. Best regards.
I have experience about programming in C. I know about matlab programming. In this moment I have time for this problem
I'm an experienced C# programmer and know MATLAB as well, having used it extensively for vector mathematics and programming.
We are a team of multidisciplinary engineers with extensive experience in programming languages and we propose to translate the MATLAB function provided into a C# function in just three days. Our team has the necessary Flere