Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Mr. Riazi,

I stuck to a problem maybe you can help me!

Do you know how can write a matlab function which after compiling the out put would be:
#include <math.h>
#include "aimmsapi.h"

DLL_EXPORT_PROTO(int) F_Func(double *x, double *y, int x_count)
{
    int j;

    for (j = 0; j < x_count; j++)
    {
        y[2 * j] = x[j];
        y[2 * j + 1] = sin(j * x[j]*y[2 * j]);
    }
    return 1;
}</math.h>


Thank you very much,
BR,
Hamid
Posted
Updated 19-May-11 12:43pm
v3
Comments
Albert Holguin 19-May-11 22:41pm    
clarify, do you want to know how to do this in matlab? ...or do you want matlab code that can be compiled and used in a C program?

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