how to find values of y?

조회 수: 1 (최근 30일)
Shubham Mohan Tatpalliwar
Shubham Mohan Tatpalliwar 2018년 10월 22일
다시 열림: Walter Roberson 2018년 12월 22일
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?

답변 (1개)

madhan ravi
madhan ravi 2018년 10월 22일
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
Shubham Mohan Tatpalliwar
Shubham Mohan Tatpalliwar 2018년 10월 22일
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
madhan ravi 2018년 10월 22일
maybe?
interp1(y,[10.9:1510])

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by