can anyone help how add zero padding

조회 수: 8 (최근 30일)
peter clark
peter clark 2022년 4월 8일
댓글: peter clark 2022년 4월 8일
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.

답변 (1개)

KSSV
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
This statement is incomplete.

Error in connector.internal.fevalMatlab

Error in connector.internal.fevalJSON
  댓글 수: 1
peter clark
peter clark 2022년 4월 8일
tahnkyou it works, i used it to my homework

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by