diff options
author | Siddhesh Wani | 2017-05-04 16:15:18 +0530 |
---|---|---|
committer | Siddhesh Wani | 2017-05-04 16:15:18 +0530 |
commit | e36eac94dd517bb69d3e5782516ee58942451991 (patch) | |
tree | 54347eba02cd5287ac5884ab84a5ca0c99f33edb /src/c/elementaryFunctions/linspace | |
parent | c7e9597db39140c1d982f796a8e1f03bb54e7905 (diff) | |
download | Scilab2C_fossee_old-e36eac94dd517bb69d3e5782516ee58942451991.tar.gz Scilab2C_fossee_old-e36eac94dd517bb69d3e5782516ee58942451991.tar.bz2 Scilab2C_fossee_old-e36eac94dd517bb69d3e5782516ee58942451991.zip |
Basic functions and image processing working with MSVC on windows x64
Diffstat (limited to 'src/c/elementaryFunctions/linspace')
-rw-r--r-- | src/c/elementaryFunctions/linspace/dlinspacea.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/c/elementaryFunctions/linspace/dlinspacea.c b/src/c/elementaryFunctions/linspace/dlinspacea.c index cb60f9e..e23db2f 100644 --- a/src/c/elementaryFunctions/linspace/dlinspacea.c +++ b/src/c/elementaryFunctions/linspace/dlinspacea.c @@ -9,13 +9,15 @@ Organization: FOSSEE, IIT Bombay Email: toolbox@scilab.in */ - +#include <stdlib.h> #include "linspace.h" + void dlinspacea(double *low_limit,int _row,double *up_limit,double range_num,double *out) { int i,j,k; double temp; - float step_iterate[_row]; /* for each row the spacing between two values is different.*/ + double *step_iterate; /* for each row the spacing between two values is different.*/ + step_iterate = (double*) malloc((double)_row*sizeof(double)); for(i=0;i<_row;i++) { |