Community Profile

photo

harshwardhan rathod


Oklahoma State University Stillwater

3 total contributions since 2017

Contact

Contributions in
View by

Question


I am running a for loop for my program. however, I want to run the for loop until i have 10 non-zero values in the matrix A.
In the following program I want "nreps" equal to "c(A~=0, 2) = 10". How can I obtain that? function [iseed, time] = proble...

casi 4 años ago | 1 answer | 0

1

answer

Question


i am trying to add the value of a certain function to an array, but there seems to be some error. the code is as follows. could you please help? trying to store the value of Thetahat into A for every x.
function [inseed] = optsim (inseed, nreps) sum = 0; sum2 = 0; for x = 0:5:60 for j= 1:nreps ...

alrededor de 4 años ago | 1 answer | 0

1

answer