Community Profile

photo

harshwardhan rathod


Oklahoma State University Stillwater

Con actividad desde 2017

Followers: 0   Following: 0

Contacto

Estadísticas

Feeds

Ver por

0

respuestas

Pregunta


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...

alrededor de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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 7 años hace | 1 respuesta | 0

1

respuesta