Convert matlab file to .b

3 views (last 30 days)
Asif Istiak
Asif Istiak on 16 Apr 2022
Answered: Abhishek Chakram on 16 Nov 2023
How to convert .m file to .b file?
  3 Comments
Asif Istiak
Asif Istiak on 16 Apr 2022
.b file- A BASIC source code file is implemented into the development of applications with the use of the BASIC programming language.
I want to code in matlab and convert the file into .b file but I could not find any .b extension while saving.
DGM
DGM on 16 Apr 2022
That's because mcode is not BASIC code. If you want to write something in BASIC, you write it in BASIC - whichever particular sort of BASIC you're targeting. Implementing something in another language is not as trivial as just selecting the file format when you save it.

Sign in to comment.

Answers (1)

Abhishek Chakram
Abhishek Chakram on 16 Nov 2023
Hi Asif,
I understand that you to convert MATLAB code to a BASIC source code file. For this, you will need to manually rewrite the code in BASIC syntax. BASIC is a different programming language with its own syntax and structure, so a direct automated conversion may not be possible.
Best Regards,
Abhishek Chakram

Categories

Find more on Dates and Time in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!