V12(:,:,h)=(((tau2(:,:,h)-tau2R(:,:,h)).^2+((tau3(:,:,h)- tau3R(:,:,h)).^2).^0.5)./7)));
1 次查看(过去 30 天)
显示 更早的评论
How to fix its brackets.
0 个评论
采纳的回答
Walter Roberson
2022-4-29
You have a number of "zero-width space" characters in your code, such as immediately before the "=" character. You have to fix that.
S = 'V12(:,:,h)=(((tau2(:,:,h)-tau2R(:,:,h)).^2+((tau3(:,:,h)- tau3R(:,:,h)).^2).^0.5)./7)));' ;
find(S == 8203)
V12(:,:,h)=(((tau2(:,:,h)-tau2R(:,:,h)).^2+((tau3(:,:,h)- tau3R(:,:,h)).^2).^0.5)./7)));
1 0 123 4 3 4 32 34 5 4 5 43 2 1 0??
You have two more ) than you have (
5 个评论
Walter Roberson
2022-4-29
V = sqrt(sum( n .* (tau - tauR).^2 ) ./ sum(n))
This assumes that tau and n are both vectors with the same orientation. If they are 2D arrays then you might need to be more specific about which dimension you sum() over.
更多回答(0 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!