Linked Questions

0
votes
1answer
488 views

Creating an array with “For” loop

I need to perform a number of operations within a For loop and store the results in an indexed array (without using the Append function) For examole (to make it ...
0
votes
1answer
376 views

Solve a system by Cramer's rule using loop

Consider the linear system AX=B,where A={{3, 0, 2}, {-3, 2, 2}, {2, -3, 3}},B={{3}, {-1}, {4}} and x=...
3
votes
1answer
211 views

How to `ParametricPlot` a system of ODEs for a set of initial conditions?

I want to ParametricPlot the solution to a differential equation for which an initial value ranges from 1 to 10. The problem (I believe) is that I don't know how ...
2
votes
2answers
81 views

How to automatically change plotting options for an array of plots?

I'm working with an array of plots. I'd like to change the color and the legend for each of the plots in my array. For example, working with 10 plots: I generate the empty array of plots ...
0
votes
1answer
248 views

Chi square minimisation wrt variables within an integration?

I'm trying to fit a model curve to some data by performing a chi square minimisation wrt three parameters $a,b$ and $NN$. The trouble I am having is that the variables with which I want to minimise ...
1
vote
1answer
227 views

Multiple file export

Here my code is running fine.In this code I put x=1 but I want to run x from 1 to 100 and for each value of x I want to export the excel file by the name according to x value.like for x=1 it export by ...
0
votes
2answers
101 views

Exporting result of calculation to file at each step of iterative routine

I am performing a calculation that involves a triple "For" command. My goal is to export the table of all values of some function (which depends on the three indices) to a data file for statistical ...
1
vote
2answers
87 views

For loop not working as expected from a C programmer's perspective [closed]

Why does Print[n] produce output inside a For loop, while Sqrt[n] (as well as many other ...
0
votes
2answers
140 views

Nested For loops simplified

In order to avoid a deep set of nested For loops, I came up with this method to do it with one For loop. The range of each level's For loop counting variable k1, k2, k3,... is 0 to b, and n is the ...
1
vote
2answers
101 views

How can I combine the output of a `For` loop into a list?

I am currently writing on a code to get RandomNumbers which are geometrical distributed. But i need the output in one list because i want to plot the output Can anyone help me? Here is the current ...
2
votes
1answer
90 views

Speeding up code for (0,1) Matrix and Calculating Recurrent Rate (RQA analyses)

I am trying for several days make this code faster. The function just takes a time series makes a Distance matrix of it and then compares components of it with Variance of that series and if component ...
0
votes
1answer
140 views

Plotting using RandomReal output [closed]

...
1
vote
1answer
84 views

Is there any way to save time using of “Cross” or “Table”?

I need to solve a equation by NDSlove, so I write the equation first, but it takes me a lot of time. The follow is my code ...
4
votes
1answer
78 views

How to display a True/False table [closed]

Below is my written program ...
1
vote
2answers
72 views

Error in Assignment

I want to create a matrix with each element updated as per the formula, whose inputs are dependent on the location of element in the matrix. ...

15 30 50 per page