How can I convert Matlab code to c#?
Letâ€™s learn how can I convert Matlab code to c#. The most accurate or helpful solution is served by Stack Overflow.
There are ten answers to this question.
Best solution
So I try to convert such Matlab code to C++: ss = 'file.mask' fp = fopen(ss, 'rb'); sx = fread(fp, 1, 'int32') sy = fread(fp, 1, 'int32') mask = zeros(sy, sx); mm = mask(100, 100:200); count = zeros(10, 1); for i = 1:sy row = fread(fp, sx, 'uchar'); for j = 1:sx for k = 1:10 if row(j) == k  1 count(k) = count(k) + 1; end end end mask(i, :) = row; end fclose(fp); And so I wonder what is C++ analog of Matlab fread?
Answer:
If you really want a C++ analog and not a C analog (or even a C/C++ analog), then you should rather...
Spender at Stack Overflow Mark as irrelevant Undo
Other solutions
i have a problem in finding any instruction in matlab to convert from the normal binary code to bipoles (biphase) code, to use it in communication system?
Answer:
Multiply by 2 and subtract 1: >> UnipolarVariable = round(rand(5,1)) UnipolarVariable = 1 1 0...
mza at Yahoo! Answers Mark as irrelevant Undo
/* convolution */ #ifndef CONVOLVE_H #define CONVOLVE_H #include <vector> #include <algorithm> #include <cmath> #include <math.h> #include "image.h" /* convolve src with mask. dst is flipped! */ static void convolve...
mei at Yahoo! Answers Mark as irrelevant Undo
I wish to run my Octave code on a Windows Embedded device. If there is no tool available for converting Octave, can I copy the code into MATLAB and use some tool to convert it to C or C++ ? How?
Answer:
There are at least 2 packages that can convert many Octave operations to C++: Example Conversion of...
Ken Meltsner at Quora Mark as irrelevant Undo
I wanted to know what is the difference between imshow(I2, []) and imshow(I2) I checked out your post on Background Illumination and the image is dark when using only imshow(I2) while the image is great when using imshow(I2, []) The problem I am facing...
ashvin a at Yahoo! Answers Mark as irrelevant Undo
Kavya S at Yahoo! Answers Mark as irrelevant Undo
using the pseudo code below, what would the matlab code be for Problem 1. Implement in matlab the following functions: 1. function DecimalToBinary (d) 2. function BinaryToDecimal (b) 3. function BinarySum (a1,a2) 4. function BinaryProd (f1,f2) The &...
Walt P at Yahoo! Answers Mark as irrelevant Undo
I've found a MATLAB routine which I'd like to run but I don't have MATLAB. I need someone convert it into an executable file (or into a code that can be run in a freely accessable language). The routine is called "comb_unrank.m" which is found...
Answer:
Hi, xmanga: Yes, I remember the earlier question! There is an open source mathematical modeling package...
xmanga at Google Answers Mark as irrelevant Undo
Hi, How would I go about writing a function in matlab that outputs an array of amplitudes for given times to produce a combined sine wave, when given arrays of freq, amp, phase and time. I have written some code that outputs the correct result: Fs =...
Answer:
A function is an mfile. It's defined in the first line of the code: function [out1, out2, ...] = your...
jjasso5 at Yahoo! Answers Mark as irrelevant Undo
Does anyone have more information about it? Does this mean that we could write most of our C code using MATLAB first, and then run the MATLAB coder? (C is important for speed, but MATLAB makes displaying output and debugging much easier)
Answer:
I watched the webinar on MATLAB coder last week. It should be uploaded soon here: http://www.mathworks...
Tony McDaniel at Quora Mark as irrelevant Undo
Related Q & A:
 How can I convert UTF16 file to UTF8?Best solution by Stack Overflow
 How Can I use .net dll in C program?Best solution by Stack Overflow
 How can I convert the query from SQL to LINQ?Best solution by Stack Overflow
 How can I convert a string number to a number in Perl?Best solution by Stack Overflow
 How Can I Convert Struct?Best solution by Stack Overflow
Just Added Q & A:
 How many active mobile subscribers are there in China?Best solution by Quora
 How to find the right vacation?Best solution by bookit.com
 How To Make Your Own Primer?Best solution by thekrazycouponlady.com
 How do you get the domain & range?Best solution by ChaCha
 How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.

Got an issue and looking for advice?

Ask Solucija to search every corner of the Web for help.

Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.