i am executing this code and getting the error""max" previously appeared to be used as a function or command, conflicting with its uis se here as the name of a variable" fow to solve thj
1 次查看(过去 30 天)
显示 更早的评论
function [tab]=ezww3(X,d)
[h1,h2,g1,g2]=filtres2(d);
[x1000,x2000,x3000,x4000]=decomp_mat(X,h1,h2);%x1000=x1000/2;
[x100,x200,x300,x400]=decomp_mat(x1000,h1,h2);%x100=x100/2;
[x10,x20,x30,x40]=decomp_mat(x100,h1,h2);%x10=x10/2;
[x1,x2,x3,x4]=decomp_mat(x10,h1,h2);%x1=x1/2;
[xx1,xx2,xx3,xx4]=decomp_mat(x1,h1,h2);
[xxx1,xxx2,xxx3,xxx4]=decomp_mat(xx1,h1,h2);%
image([[[[[xx1,xx2;xx3,xx4],x2;x3,x4],x20;x30,x40],x200;x300,x400],x2000;x3000,x4000]),colormap(gray)
round(xxx2); xxx3=round(xxx3); xxx4=round(xxx4);
seuil=round(max(max(x1)));
1 个评论
Greig
2015-3-3
I assume that the error is coming in the last line of the code here and not in the decomp_mat function?
If so, what exactly is x1? If it is a vector or matrix of numbers, there should be no problem.
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!