MATLAB Answers

rania
0

How can I write a spesific math function, can anyone help?

Asked by rania
on 23 Sep 2013

I want the program to calculate dV(r)/dLnr= V(r)dN(r)/dLnr, where dN/dr = number distribution and I have the "N" in ".txt" files.. How can I write that code? (I know how to define the pathname, in order to open the folder with the txt files).How can I define the "ln" and the "d/dr"? and then I must plot dV(r)/dLnr= V(r)dN(r)/dLnr -Yaxis, radius-Xaxis, x-axis has just numbers from 0.0 to 18.0 um. I wasn't very clear, was I? I'm sorry, but I m realy confused.:( if anyone can give any Ideas, it woyld be very helpful.

  0 Comments

Products

No products are associated with this question.

2 Answers

Answer by rania
on 23 Sep 2013

this is what I want to get in the end

  0 Comments


Answer by Chocolate Warrior on 23 Sep 2013

Use Differentiation function if you are looking for that. That is what i could infer from your question.

http://www.mathworks.in/help/symbolic/diff.html

  1 Comment

If the N are in a text file, my interpretation would be that numeric solutions are required, such as by using gradient()


Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!