summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/elementaryFunctions/linspace
diff options
context:
space:
mode:
authorsiddhu89902017-05-22 15:13:54 +0530
committersiddhu89902017-05-22 15:13:54 +0530
commit02a004ea1500c403ac1a18a52aaf79aaeb7280ed (patch)
tree5e55f872e363922a21ad91165628e68e16fea8a3 /2.3-1/src/c/elementaryFunctions/linspace
parent5f17dffbfa6d84aee23f7946cfa95e9e5c9995b7 (diff)
parentde82d12658979cd70439f977742f80fac9f6521f (diff)
downloadScilab2C-02a004ea1500c403ac1a18a52aaf79aaeb7280ed.tar.gz
Scilab2C-02a004ea1500c403ac1a18a52aaf79aaeb7280ed.tar.bz2
Scilab2C-02a004ea1500c403ac1a18a52aaf79aaeb7280ed.zip
Bugs fixed for Scilab 6.0
Diffstat (limited to '2.3-1/src/c/elementaryFunctions/linspace')
-rw-r--r--2.3-1/src/c/elementaryFunctions/linspace/dlinspacea.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/2.3-1/src/c/elementaryFunctions/linspace/dlinspacea.c b/2.3-1/src/c/elementaryFunctions/linspace/dlinspacea.c
index cb60f9e7..e23db2f3 100644
--- a/2.3-1/src/c/elementaryFunctions/linspace/dlinspacea.c
+++ b/2.3-1/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++)
{