how can i get value of 'a' at b=0.

2 次查看(过去 30 天)
vipul utsav
vipul utsav 2013-1-16
clc;
close all;
clear all;
a=[5,11,15,18,22,30];
b=[2,3,4,5,6,7];
plot(b,a);
if i want value of 'a' at b=5.5 then i use 'interp1' function and i got correct value of 'a',
but how can i get value of 'a' at b=0.
  1 个评论
Jan
Jan 2013-1-19
The half of your code consists of unmotivated brute clearing. I recommend to avoid this in your real programs, at least the useless "clear all" when actually a "clear variables" is meant. But for posting in the forum, such general purpose overhead code is noise only.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by