MATLAB Answers

0

how to find values of y?

Latest activity Reopened by Walter Roberson
on 22 Dec 2018
if true
% code
x=[0,1 1 20 30 430]
%corresponding values of y
y=[1510.75 a b c 10.9]
how to find a b c?

  0 Comments

Sign in to comment.

1 Answer

madhan ravi
Answer by madhan ravi
on 22 Oct 2018

clear all
syms a b c
x=[0.1 1 20 30 430]
%corresponding values of y
y=[1510.75 a b c 10.9]
for i =1:numel(y)
if (isnumeric(y(i))==0)
idx(i)=i
else
continue
end
end
y(idx)=x(idx)

  4 Comments

Show 1 older comment
madhan ravi
on 22 Oct 2018
I am finding it difficult to understand your question
i have a vector x of size 120000 in this vector x min is 0.1 and x max is 430
i know respective value of y
for xmin y is 1510
for x max y is 10.9
and i want to interpolate y within these values
madhan ravi
on 22 Oct 2018
maybe?
interp1(y,[10.9:1510])

Sign in to comment.