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

1 view (last 30 days)
How to fix its brackets.

Accepted Answer

Walter Roberson
Walter Roberson on 29 Apr 2022
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 Comments
Walter Roberson
Walter Roberson on 29 Apr 2022
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.

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!