Asked by Omar Almahallawy
on 28 Apr 2019

I have a set of values for F and a set of values for D.

When F and D are divided together they give a ratio that I have the answers to in variable X

so

X=F./(D.^5)

ex.

F =[

0.0026 0.0026 0.0026 0.0026 0.0027 0.0027 0.0027 0.0028 0.0028 0.0028]

D =[

0.9652 1.0160 1.0668 1.1176 1.1684 1.2192 1.3208 1.4224 1.5240 1.6256]

X=[0.0024 0.0019 0.0015 0.0012 0.0010 0.0007 0.0005 0.0003 0.0002]

I want code that tells me for which F and which D give me the known answer of X

Answer by Jos (10584)
on 29 Apr 2019

What about

% X is known

F = X

D = ones(size(F))

% F ./ (D.^5) equals X

or is this to simply thought by me ;-)

Sign in to comment.

Opportunities for recent engineering grads.

Apply Today
## 5 Comments

## dpb (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/459017-i-have-a-question-that-works-backwards#comment_699268

## Image Analyst (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/459017-i-have-a-question-that-works-backwards#comment_699282

## dpb (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/459017-i-have-a-question-that-works-backwards#comment_699290

## Omar Almahallawy (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/459017-i-have-a-question-that-works-backwards#comment_699449

## dpb (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/459017-i-have-a-question-that-works-backwards#comment_699552

Sign in to comment.