V12(:,:,h)​=(((tau2(:​,:,h)-tau2​R(:,:,h)).​^2+((tau3(​:,:,h)- tau3R(:,:,​h)).^2).^0​.5)./7)));

2 次查看(过去 30 天)
How to fix its brackets.

采纳的回答

Walter Roberson
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)-tau2​R(:,:,h)).​^2+((tau3(​:,:,h)- tau3R(:,:,​h)).^2).^0​.5)./7)));' ;
find(S == 8203)
ans = 1×7
11 22 33 44 55 74 85
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
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!

Translated by