Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Hi, I need your help to translate the matlab code in visual code. I'm new on this subject, and the conversion is very important to me. Thank you in advance, Waiting for your help.
Matlab Code is here;

clc,clear all
x = 0: 0.2 :1; %get a dimensional array of real number type

fid = fopen('dene3.txt','w';); % Please write description
for i=1:6
fprintf(fid,'%8.5f\n',1.87*x(i)); % Please write description
end
fclose(fid); % Please write description

fid = fopen('dene4.txt','w'); % Please write description
for i=1:6
fprintf(fid,'%7d\n',12*i); % Please write description
end
fclose(fid); % Please write description

clc,clear all
ax=zeros(1,6);
fid = fopen('dene3.txt'); % Please write description
for i=1:6
ax(i)=fscanf(fid,'%f',1) % Please write description
fclose(fid); % Please write description

ay=zeros(1,6);
fid = fopen('dene4.txt');
for i=1:6
ay(i)=fscanf(fid,'%d',1)
end
fclose(fid);
Posted
Comments
Sergey Alexandrovich Kryukov 11-Dec-11 18:31pm    
Why?! Why VB?
--SA

Lots of links here[^] that will help you.
 
Share this answer
 
I know that but I don't know VB and so I don't use VB, so I want help you. If you know VB using, help me for translate.It's important for me, waiting for help.
 
Share this answer
 
Comments
Richard MacCutchan 12-Dec-11 8:30am    
This site does not provide free program conversion to order. Try rentacoder or learn the language.
zagorka34 12-Dec-11 15:33pm    
I think if someone know matlab and visual basic, can help me. Also I don't understand what you mean with 'learn the language'. I want only help.
Richard MacCutchan 13-Dec-11 4:30am    
As I said above, we do not provide free conversion services. Also if you do not understand Visual Basic there is no point in having it converted as it will still be no use to you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900