Subscript indices must either blabla

9 visualizzazioni (ultimi 30 giorni)
Tommaso
Tommaso il 4 Mar 2014
Commentato: Tommaso il 5 Mar 2014
>> gamma=0;
>> s=0;
>> dx=linspace(0,10);
>> dx=0.1;
>> xv=linspace(0,10);
>> f=@(x) sin(2*pi*x/10);
>> xnodes=(0:0.1:10-0.1);
>> f=adr_per_cen_fd(0,f(xnodes),u,ni,gamma,s,xnodes,dx);
SUBSCRIPT INDICES MUST BE POSITIVE OR REAL, UHM. can you help me?
Thank you

Risposta accettata

Image Analyst
Image Analyst il 4 Mar 2014
What is adr_per_cen_fd? It thinks it is an array, not a function and if its an array, all the dimensional indexes must be integers. You can't have the 0.1th column of a matrix.

Più risposte (0)

Categorie

Scopri di più su Loops and Conditional Statements in Help Center e File Exchange

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!

Translated by