Fortran to matlab code
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Matlabuser
am 12 Nov. 2014
Kommentiert: Matlabuser
am 17 Nov. 2014
Hi everyone, I have a code in fortran and I want to convert that code in matlab. But problem is that, in fortran I have I=-N+1:N+1;
But in matlab, If I take the negative no. I have the problem of indexing. Can anyone please tell me, how I can solve this problem?
Thanks
0 Kommentare
Akzeptierte Antwort
Torsten
am 12 Nov. 2014
If you mean
I=-(N+1):(N+1)
then shift the indices by N+2 for the MATLAB application.
Then in_Matlab I will be I=1:(2*N+3)
Best wishes
Torsten.
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Fortran with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!