MATLAB: What does x=val(1,:) valval(1x=val(1 I should use a Nx1 vector of doubles as my input signal x for my function. What do I get if a use: >>load (´My_Signal.m`) and then >>x =val(1,:); ? Best Answer "x" is set to the first row of "val" (thus "x" is a vector of size 1xN where N is the number of columns of "val")Best wishesTorsten. Related SolutionsMATLAB: Standard deviation calculation of a time series. as x is your signal (NX1) vectorminR = 0.15*std(x) ;Read about stdIf your val is a matrix and if it has signal information in the first row, thenx = val(:,1)should be used.... MATLAB: Assigning multiple values to a matrix at locations specified by an array of indices Read about sub2ind. This should be used for your case. val = [98 99 100] ; idx = sub2ind(size(my_mat),x,y) ; my_mat(idx) = val ; Related QuestionAdding noise to the data setMerging multidimensional cell arrayIs there any mistaken on the fmincon solve
Best Answer