Perform elementwise substitution of vector of scalars into vector of equations.
1 view (last 30 days)
I have a vector (t) of 1000 scalars and corresponding vector (d) of equations of (t) , I wanted to substitut
e each element of t in the corresponding equation.
I used for loop but it seems that it substitute all the values in (t) into first elemnt of (d) and then to second elemnt ans so on.. which will let the resulted vector be 1*(1000)^2 instead of 1*1000.
this is my try (I used simplified example):
Swetha Polemoni on 4 Mar 2021
It is my understanding that you want substitute every value of t in each equation d.
You may find the following code snippet useful.
for i =1:length(t)