MATLAB: How to get MATlab to output the value of a point on a plot plot I have a plot of [t,A] where A is a vector with 3 components (Arr,Azz,a). I need to find the value of t when a drops to a negligible value ~10^-3. Best Answer Something like this would work:t = linspace(0,10);a = exp(-t);ia = find(a <= 1E-3, 1, 'first');t_thr = t(ia);figure(1)plot(t, a)hold onplot(t_thr, a(ia), 'bp')hold offgrid Related SolutionsMATLAB: Question about sinc function ploting To move it in the plot, simply add the appropriate value to the âtâ vector: t=-40.955:0.005:40.960;u=(200/pi)*(15*sinc(15*t)-3*sinc(3*t));figureplot(t-min(t), u)gridExperiment to get the result you want. MATLAB: How to initialize a variable to zero in userdefined matlab function, which should be executed only once then the values should change dynamically Such cases are handled using persistent variables.function [ia_avr] = fcn(ia) persistent iasum ia_num ia_avr_old if isempty(iasum) % only runs once iasum = 0; ia_num = 0; ia_avr_old = 0; end iasum = iasum+Ia; if xxxx ia_num=ia_num+1; ia_avr=ia_avr_old; elseif xxxx ia_num=ia_num+1; ia_avr=iasum/ia_num; ia_avr_old=ia_avr; else ia_avr=ia_avr_old; iasum=0; ia_num=0; endend Related QuestionCan you create a plot within your functionPlotting two equations on matlabHow to derive an equation of Theta_a in terms of L_a using ‘solve’ command or any other way in MatlabConvert monthly data from daily data series
Best Answer