关于matlab的Error:Unbalanced or misused parentheses or brackets.clc;clear;load('y14.mat');load('y15.mat');delta_y14 = -diff(y14);delta_y15 = -diff(y15);alpha = delta_y14 - delta_y15;for i = 1:85ff_alpha(i) = (alpha(i) + alpha(i+1))/2;endL = 14450.
关于matlab的Error:Unbalanced or misused parentheses or brackets.clc;clear;load('y14.mat');load('y15.mat');delta_y14 = -diff(y14);delta_y15 = -diff(y15);alpha = delta_y14 - delta_y15;for i = 1:85ff_alpha(i) = (alpha(i) + alpha(i+1))/2;endL = 14450.
关于matlab的Error:Unbalanced or misused parentheses or brackets.
clc;clear;
load('y14.mat');
load('y15.mat');
delta_y14 = -diff(y14);
delta_y15 = -diff(y15);
alpha = delta_y14 - delta_y15;
for i = 1:85
ff_alpha(i) = (alpha(i) + alpha(i+1))/2;
end
L = 14450.52;
f = 6.828*10^(-5);
g = 9.8;
fff = cumsum(ff_alpha);
fff = fliplr(fff);
v = 100*g*fff*10000/L/f;
data=load('14.txt');
plot(v',14(1:87,1),'ko'); %画出水深-流速图 用*表示
hold on;
plot(v',14(1:87,1),'Linewidth',2); %将点连接
%以下为图象标记等简单处理
set(gca,'YDir','reverse');
set(gca,'XAxisLocation','top');
ylabel('水深 [m]','fontsize',15);
xlabel('流速 [cm/s]','fontsize',15);
grid on
关于matlab的Error:Unbalanced or misused parentheses or brackets.clc;clear;load('y14.mat');load('y15.mat');delta_y14 = -diff(y14);delta_y15 = -diff(y15);alpha = delta_y14 - delta_y15;for i = 1:85ff_alpha(i) = (alpha(i) + alpha(i+1))/2;endL = 14450.
错误提示括号不对称,缺了或者多了.