Geschlossen

C# code from Matlab

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);

Fähigkeiten: Matlab und Mathematica, Algorithmen, C Programmierung, Mathematik, C# Programmierung

Über den Kunden:
( 0 Bewertungen ) Aksaray, Turkey

Projekt-ID: #36189009

25 Freelancer bieten im Durchschnitt $120 für diesen Job

kazemmojtama

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 Mehr

$250 USD in 5 Tagen
(29 Bewertungen)
6.6
techplusintl

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 Mehr

$250 USD in 2 Tagen
(25 Bewertungen)
6.4
WinterGreenTech

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

$200 USD in 9 Tagen
(28 Bewertungen)
5.7
gowthamsarathy

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

$50 USD in 1 Tag
(128 Bewertungen)
5.4
hayat38402

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 Mehr

$250 USD in 7 Tagen
(47 Bewertungen)
5.7
sybacdesigner

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 Mehr

$100 USD in 2 Tagen
(14 Bewertungen)
4.8
needoCh

Hi, I am Naveed Ahmed, a software engineer and having extensive experience in Software Development, Android Development and Web Development. I deliver my work on time with best results. I am proficient in Java, C# and Mehr

$80 USD in 7 Tagen
(27 Bewertungen)
4.4
marklai

As a matlab and C# coder, I bid on your code translation project because I have the expertise to deliver superior quality work. I guarantee you constant updates in the project as a way of ensuring the project meets you Mehr

$60 USD in 1 Tag
(23 Bewertungen)
5.5
anushka03367

Hello I can do this. Please share the details of the task so that I can check and confirm accordingly.

$140 USD in 7 Tagen
(3 Bewertungen)
4.0
Rholab123

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

$100 USD in 3 Tagen
(1 Bewertung)
3.8
imranalilaulai

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 Mehr

$140 USD in 7 Tagen
(3 Bewertungen)
2.8
nguyendauit

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

$150 USD in 1 Tag
(1 Bewertung)
1.5
programmingarena

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 Mehr

$50 USD in 2 Tagen
(5 Bewertungen)
0.8
moiskey

?? Dear client ?? I'm a talented software developer with over 5+ years of experience in C/C# programming. I have a passion for technology and an insatiable desire to create high-quality solutions that meet the needs of Mehr

$140 USD in 7 Tagen
(0 Bewertungen)
0.0
salmanmalik2015

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 Mehr

$180 USD in 3 Tagen
(1 Bewertung)
0.0
Alephbasystem

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

$30 USD in 1 Tag
(0 Bewertungen)
0.0
CSAhmedOsman

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.

$45 USD in 2 Tagen
(0 Bewertungen)
0.0
geulate

I have experience about programming in C. I know about matlab programming. In this moment I have time for this problem

$80 USD in 7 Tagen
(0 Bewertungen)
0.0
mochafrappegames

I'm an experienced C# programmer and know MATLAB as well, having used it extensively for vector mathematics and programming.

$50 USD in 1 Tag
(0 Bewertungen)
0.0
theFivesLancers

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 Mehr

$50 USD in 3 Tagen
(0 Bewertungen)
0.0