How to Print Title According to Test Results
Show older comments
I'm writing this code and getting this error. Couldn't figure out the syntax error.
a=mean(z,1); % z is actually a data tabulated in 2400x62 matrix %
a1=hist(a,10);
h=chi2gof(a);
if h==0
h1=fprintf('Passed');
else h==1
h1=fprintf('Failed');
end
subplot(2,1,1);
stem(a);
xlabel('Signal - Column');
ylabel('Mean');
grid on;
subplot(2,1,2);
plot(a1);
title('Hypotheses Test- Result : %d','h1'); % <<< here the error is happening %
xlabel ('<---Distribution--->');
ylabel ('Value------>');
grid on;
Accepted Answer
More Answers (0)
Categories
Find more on Graphics Objects in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!