How can i correct the error in the code?

3 ビュー (過去 30 日間)
Pooja
Pooja 2013 年 4 月 23 日
回答済み: khalid khann 2021 年 1 月 12 日
if true
% q=[q(2*qk)(2*qk)(4*qk)]
end
I am getting the following error
()-indexing must appear last in an index expression.
in the editor its showing Cannot call or access into a temporary array.
how to correct the error
  1 件のコメント
Image Analyst
Image Analyst 2013 年 4 月 23 日
That will not give an error because it's commented out. Please post the actual code, and all of the actual error message - all the red text displayed in the command window.

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

回答 (4 件)

per isakson
per isakson 2013 年 4 月 23 日
What is your intension? I guess
q=[q(2*qk),(2*qk),(4*qk)]
  6 件のコメント
per isakson
per isakson 2013 年 4 月 23 日
One can use either space or comma as delimiter. I prefer comma because is more visible.
Does the code of the text book run after you made the correction?

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


Pooja
Pooja 2013 年 4 月 23 日
I gave a comma and that error got corrected but its showing more errors.Any way to make it running or is there any running JPEG 2000 available?
  14 件のコメント
Image Analyst
Image Analyst 2013 年 4 月 23 日
編集済み: Image Analyst 2013 年 4 月 23 日
There is no C in the code you posted, nor is there a wavework(). Should I ask a fourth time for you to post ALL of your error text that appears in the command window in red (not just part of it like you did)? Nah, I think I'll just give up - besides, I don't have the Wavelet Toolbox anyway. If you want to post your code, check out this link: http://www.mathworks.com/matlabcentral/answers/7924-where-can-i-upload-images-and-files-for-use-on-matlab-answers
Pooja
Pooja 2013 年 4 月 23 日
Sorry.I have submitted the entire file in the file exchange.Its under review.Under the name jpeg2000.

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


Md Muzakkir Quamar
Md Muzakkir Quamar 2019 年 2 月 19 日
n=100;
lamda=0.1;
e=randn(n,1);
U12=[Sin(0.1*(1:n)') Sin((0.1+lamda)*(1:n)')]
Y=(Sin(0.1*(1:n)')+e;
R=U12'*U12;
r=U12'*Y;
thetahat=inv(R)*r;
>> learning
Error: File: learning.m Line: 8 Column: 21
Invalid expression. When calling a function or indexing a
variable, use parentheses. Otherwise, check for mismatched
delimiters.
can anyone answer whats the error

khalid khann
khalid khann 2021 年 1 月 12 日
A=-1.04963*10^11
B=8.44865*10^-8
u=1.47895*10^7
t=0.5
x=(-10^(2):100:10^2)
f=u/A.*sech (1./2*sqrt(u/B)*(x-u*t)).^2
plot(x,f)
it show this erro
Error in Untitled (line 7)
plot(x,f)

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by