How to solve the following type of equation that includes summation in matlab?
    2 次查看(过去 30 天)
  
       显示 更早的评论
    
How to find an expression for 
 using matlab, so that the below equation equals to zero.
 using matlab, so that the below equation equals to zero.0 个评论
采纳的回答
  Bruno Luong
      
      
 2022-3-27
        
      编辑:Bruno Luong
      
      
 2022-3-27
  
      Assuming
H_m and t_m are stored in (1 x M )arrays
% Dummy test data
M = 10;
H = rand(1,M);
t = rand(1,M);
P = sum( abs(H(:)).^2 .* [-ones(M,1) +3*t(:) -3*t(:).^2 +t(:).^3]);
t0 = roots(P)
sum(abs(H).^2 .* (t - t0).^3, 2)
10 个评论
  Bruno Luong
      
      
 2022-3-30
				Elaborate what? Your orginal equation you post seems fishy to me, not the MATLAB implementation of your equation.
Another fischy fact : the expression only have sum of strictly positive quantities, you cannot expect there is a real root of it. Something is wrong with the maths/physics where you derive the expression/equation. 
更多回答(0 个)
另请参阅
类别
				在 Help Center 和 File Exchange 中查找有关 Linear Algebra 的更多信息
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!





