can anyone help how add zero padding
8 ビュー (過去 30 日間)
古いコメントを表示
why is it invalid expression
>> Fs = imread('F:\Garena Image\JIU chrome.jpg');
>> Hs = fspecial('sobel');
size(Fs)
ans =
747 500
Ff = fft2(Fs, 512, 512);
Hf = fft2(Hs, 512, 512);
G = Hf .* Ff;
F = real(ifft2(G));
Fx = F(1:250, 1:250);
imshow(uint8(Fx))
ans =
1364 2048 3
ans =
↑
Error: Invalid expression. Check for missing or extra characters.
0 件のコメント
回答 (1 件)
KSSV
2022 年 4 月 8 日
May be you are typing ans = in the workspace. You just need to type ans.
A = rand(10) ;
size(A)
ans % no error
You have to save the result into a variable and then display. Why you want to use ans?
ans = % error
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!