dct2 function in 5th line giving error

??? Error: File: dct2.m Line: 1 Column: 1 The input character is not valid in MATLAB statements or expressions. I have downloaded the packages required and the code was working previously on a linux machine.
close all;
clear all;
x=imread('lena.bmp');
figure, imshow(x);
F=dct2(x);
figure,imshow(F*0.01);
ff= idct2(F);
figure, imshow(ff/255);

1 件のコメント

Steven Lord
Steven Lord 2017 年 4 月 16 日
What does this command show?
which -all dct2

サインインしてコメントする。

回答 (1 件)

abdul qayoom
abdul qayoom 2017 年 11 月 13 日

0 投票

firstly store the image with .tif extension and also give full path like..x=imread('E:\lena.tif');

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

質問済み:

2017 年 4 月 16 日

回答済み:

2017 年 11 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by