MATLAB algorithm to MATLAB function code or C code
Can any body help me write this below code into MATLAB object oriented code or C code form please?
M=50; % total number of periods. (choose for 1s duration)
f0 = 50; % fundamental AC frequency
T0 = 1/f0; %fundamental AC period
T = M*T0; %Time for M periods (integer M)
N=30; % sample points per period.
dt = T0/N; % Sample at N points per period (integer N > 20)
t = dt*[1:M*N-1]; % Sampling time array
A0=120/2; % amplitude of AC signal. Divide by 2 or maybe sqrt (2) ?
AC=A0*sin(f0*t*2*pi); % create AC signal.
DC0=50; % DC amplitude
DC=DC0*ones(1,le...converting c++ code to Matlab code using Matlab 9
im working on a project using matlab. i want to use some of the already writen codes in C++. i want to use these codes in my project rather than writing them from scratch. is there some way or a chunk of code that might convert C++ code to matlab code or a ".c" file to ".m" file. please if anyone knows do let me know at the earliest.thanks
"fatima " <firstname.lastname@example.org> wrote in message <email@example.com>...
> im working on a project using matlab. i want to use some of the already writen codes in C++. i want to use these c...'Matlab Code' to 'Embedded Matlab fun code'
I have a Matlab code to process a pure analog signal 'u'. Now I want to implement it in Simulink and I want to use it in 'Embedded Matlab fun block' so i need to transform 'Matlab code' to 'Embedded Matlab fun code' to perform the task.
The Matlab code is as follows:
u_abs = abs(u);
major_th = 1.5e-1;
minor_th = 1.8e-2;
major_peak_value = ;
minor_peak_value = ;
pos = 1;
pos_max = 1;
[m pos_max(end+1)] = max( u_abs( pos : pos + 10) );
pos...Run MATLAB code without MATLAB
I'm interested in running MATLAB code without having MATLAB
installed. Particularly, I'd be interested in being able to
call MATLAB code from Java (!!) or C (less desirable),
because if I say, make some application that uses MATLAB
code, then I don't wanna require users who download it to
have MATLAB installed. What is the best route to take with
this? Is it possible to simply interface MATLAB code from
On Jan 17, 12:32 pm, "Rob B" <rrbramb...@gmail.com> wrote:
> I'm interested in running MATLAB code without having MATLAB
> installed. Particu...re:request for matlab code-3D spiht image compression MATLAB CODE
This is praneeth doing my final year request you send me the
amtlab code for the project titled '3D spiht image compression '.
I like to do this project and working for it .Please make sure
that it is posted as earlier as possible.
This is not a place to come and request people to do your work for you.
...Run a Matlab code without matlab
I've programmed a matlab code and i want to use it on my home
computer. The problem is that matlab isn't installed. Is there any
possibility to run a matlab code without matlab?
> Is there any possibility to run a matlab code without matlab...
ugarcia <firstname.lastname@example.org> wrote in message <email@example.com>...
> I've programmed a matlab code and i want to use it on my home
> computer. The problem is that matlab isn't installed. Is there any
> possibility...Matlab face detection code to c/c++ code
I am in urgent need of something which can change my MATLAb code to C or C++ code. I have to run this C, c++ code in Code composer studio and feed the program into DSP emulator EVDM642. Code composer studio does not support MATLAB...
So, its important to convert the code into C or C++..
This is my semester project and I have to give the presentation on 18th november...or else I will be failed..
Please help me guys....Tell e something which changes MATLAb to C/C++.
Thanx in advance.
On 16 Nov., 05:42, "Tarun " <tarunsa...@gmail.com> wrote:
> hello guys...
>...code of matlab 7a not working in matlab 2009
I wrote a code in matlab 7a andand it was working over there
then i changed computer which was having matlab realease 2009a and it is not working
If i install Matlab 7 release 14, will my code work again thanks
"moonman" wrote in message <firstname.lastname@example.org>...
> I wrote a code in matlab 7a andand it was working over there
> then i changed computer which was having matlab realease 2009a and it is not working
> If i install Matlab 7 release 14, will my code work again thanks
Can you be more specific about the fact that your code is not working in...Codes are all shown in the matlab window when running matlab
I am using matlab 6.5.0.
Today, when I wrote some codes in the M-editor and run by using F5,
all contents of the codes appear in the main matlab window. This is
quite strange and never happened before.
I tried to shorten the codes and run some simple test. Still the
same. So it has nothing to do with what I wrote in the program.
I suspect that I turned on some setting in matlab without realizing
it. Anyone can give a hint on how to turn this display off?
You probably turned echo on.
Try echo off all
Or go to File -> Preferences -> Command Window and uncheck Echo on
P...From Matlab neural network toolbox to matlab code
I have been working with neural network toolbox in matlab 7 for the calibration and validation optimization problems. but i wanna to do it with matlab code. is it possible to transform the things that happen in toolbox, training process and adapting outputs get via code.. is there anyone who transform the things happen in toolbox to codes.
"murat " <email@example.com> wrote in message <firstname.lastname@example.org>...
> Hi All,
> I have been working with neural network toolbox in matlab 7 for the calibration and validation optimization...ROI hand vein detection in Visual C code into Matlab code
Anyone could help me on translate this programming ROI detection written in Visual C into Matlab?
Actually this code about hand vein ROI extraction.
//surfaceIn-filled image (extracted finger region)
//surfaceOriGray-original grayscale image
//surfaceOut0-align filled image
//surfaceOut-align segmented grayscale image
void putBackAlignResize(SDL_Surface *surfaceIn, SDL_Surface *surfaceOriGray, SDL_Surface *surfaceOut0,SDL_Surface *surfaceOut, unsigned int refPointX, unsigned int refPointY)
//size...EngSim: All Matlab features and functions. 2 to 20 Times Faster than MATLAB. Use the same programming syntax as MATLAB, ANSI C/C++, /C++. Good Graphics.
ENGSIM is an Engineering Simulation & Graphics Library for Microsoft
Visual C++. It has all Matlab features and functions. 2 to 20 Times
Faster than MATLAB. Very Easy to program. Use the same programming
syntax as MATLAB, ANSI C/C++. Graphics Support is Very Good. Support
Negative Indexing for Array/Matrix, Complex Array and Complex Matrix.
Support Fix-point/Floating-point Communications Engineering and Signal
Processing Simulation. Support Statistical Analysis. Support User-
Defined Classes. Support User-Graphics Development
...MATLAB CODE FOR FACE DETECTION
I need MATLAB code for face detection (without Neural Network, which
usese image processing techniques)togather with the algo. used in the
pls help me.
...calibration detection MATLAB code
i want a sample MATLAB code about calibration detection in (Abandoned
Object Detection in Crowded Places) area.