a Matlab code that needs solve.

I got this code when I run it there is a waring in lines from 7-11 regarding scalar but I do not now where is the problem. So, please help if you can. the m file is attached.

 Respuesta aceptada

Star Strider
Star Strider el 1 de Jun. de 2015
For this line and the others, you probably want:
Thb=zeros(1,length+1);
I would also replace all the disp calls, such as:
disp(['mh of slice',num2str(i+1),'=',num2str(mh(i+1))]) %%%
with fprintf calls:
fprintf('mh of slice %.0f = %.4f\n', (i+1), mh(i+1))
I did not run your code, but these changes should get you started.

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 1 de Jun. de 2015

Respondida:

el 1 de Jun. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by