An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Hi all,
In below equation Nf is unknown and remaining are known values. How to write the code using compose to find out the Nf?
Hi Arul,
you can try this script.
Unable to find an attachment - read this blog
Hi ,
Thanks for sharing. I am getting the following error.
Arul,
I've just tested it and found out that this error appears in v2017.3, but not in 2019. Please download the latest version.
Regards,
Roberta
'info' , used in this command :
[x,fval,info] = fzero(x_zeros, [xstart xend]);
was added in version 2019. To run the script in earlier version, remove it :
[x,fval] = fzero(x_zeros, [xstart xend]);
and of course remove the test starting with 'if info ==1'
Hi,
I couldn't able to get the value of 'Nf '
I have modified the script a little bit according to the help of 'fzero'
clc,clear function output = equation(Nf) dEps = 0.5; Eps = 0.8; Sigma = 90; E = 30; c = 0.8; b = 0.9; output = Sigma/E*(2*Nf)^b + Eps*(2*Nf)^c-dEps/2; end options = optimset('TolX', 1.0e-8); interval = [0, 6]; [x,fval] = fzero(@equation, interval, options)
It's running in 2017.3 without any problem.
The Script is running but not able to find the value of 'Nf'.
<?xml version="1.0" encoding="UTF-8"?>
Sorry, I assigned the result to variable x. If you replace x by Nf in line 16, you get Nf.
Hi RoKet,
Thanks for your help.