harshwardhan rathod
Oklahoma State University Stillwater
自 2017 起处于活动状态
Followers: 0 Following: 0
Feeds
提问
suppose i have a matrix [1.22 0 2.33 3.444 1.222 0] and i want the solution to be the number of iterations between non zero values. the solution should be [1 2 1 1]
Z(xidx) = z; this is the vector that i have.
7 years 前 | 0 个回答 | 0
0
个回答提问
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...
7 years 前 | 1 个回答 | 0
1
个回答提问
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 ...
7 years 前 | 1 个回答 | 0