getting the same ouputs for different inputs

Hello,
i am getting the wrong result and i didnt where i did mistake. I have varied one variable , but the ouput is showing the same value for different inputs .i am attaching my code as below
how i could solve this issue??

3 comentarios

Jan
Jan el 24 de Mzo. de 2021
We have the code, the input data and your opinion, that something is wrong. This is not enough to suggest a solution.
sunitha
sunitha el 24 de Mzo. de 2021
I have varied only one variable i.e Df with 9 inputs corresponding to that I have to find N J variables. I want to know how the N is changing wrt to Dr variable . But here it is showing same value which is wrong
"But here it is showing same value which is wrong"
Of course Matlab computes exatcly and correctly what you instruct it to do. The readers of your code have no chance to guess, why you expect another result. A simplified version of the communication problem:
x = 3 + 4
% Matlab replies 7, but I want something else.
Do you see it? Give the readers a chance to understand, why you expect another result.
Start with improving the readability of your code: Ctrl-a Ctrl-i for a proper indentation, useful comments which explain the formula exhaustively, spaces around operators and avoiding of too many unneeded parentheses.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Preguntada:

el 24 de Mzo. de 2021

Comentada:

Jan
el 24 de Mzo. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by