create vector that consists only of zeroes
    5 次查看(过去 30 天)
  
       显示 更早的评论
    
hi,
I tried to create a vector that consists only of zeroes and tried the following:
error=zeroes(length(data13(:,1)))
but it didn't work. my goal is it, that the lenght of the error vector/ the number of elements in the vecotr is the same as in column one of the matrix data13
0 个评论
采纳的回答
更多回答(1 个)
  Azzi Abdelmalek
      
      
 2013-4-19
        
      编辑:Azzi Abdelmalek
      
      
 2013-4-19
  
      It's not zeroes, it's zeros
error=zeros(length(data13(:,1)),1)
%or
zeros(size(data13,1),1)
另请参阅
类别
				在 Help Center 和 File Exchange 中查找有关 Dates and Time 的更多信息
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


