0
votes
0answers
19 views

Function not returning a vector?

I've got a couple scripts I'm running but for some reason my y variable is a scalar and not a vector. Can anyone let me know why this is? Thanks. For those interested, I am trying to determine a ...
0
votes
1answer
940 views

Calculation of bessel function versus matlab solution

I am looking to calculate the Bessel function of the first kind $J_o(\beta)$. I am using the formula (referenced from wikipedia) to accomplish this. $$J_\alpha (\beta) = ...
0
votes
1answer
684 views

Finding minimum/maximum of a multi-variable function under some constraints using matlab.

I have a function $f(x,y,z)$ I want to find the minimum/maximum of the function with some constraints like $$0 < x < C_1$$ $$0 < y+z <C_2$$ where $C_1$ and $C_2$ are some integer ...
1
vote
1answer
225 views

Produce piecewise monotonic function with 3 points and their slope with MATLAB

I'm trying to reproduce the shape of an airfoil's camber line using the leading edge angle, the trailing edge angle, the chord and the max camber value. I cannot use a spline because it overshoots ...
-1
votes
2answers
352 views

write text using an equation

Well like the batman equations and equations for heart, I once saw a site that draws equation for whatever text you type....but now I can't find it. Does anybody know such a site? Also a general ...
0
votes
1answer
285 views

Matlab: how to create a function $f(x)$ and get the value of $f(x)$ given $x$?

I'm a newbie to matlab and wonder how to create a function (i.e., $f(x) = 2*x+1$ ) get the value of $f(x)$ given $x$. In the above example, say $x=2$, I'd expect the result to be $5$ (yep, trivial ...
1
vote
1answer
648 views

How to create a function in matlab given the y values?

I was wondering if it is possible to create a function f(x) in matlab based on y values. Example X=[0,1,2,3,4,5,6,7,8,9] Y=[5,6,7,8,9,10,11,12,13,14] In this trivial example I wish to get f(x)=x+5 ...
0
votes
1answer
240 views

Matlab: Website with a lot of functions to download

I am looking for a website that contains a collection of functions, more than Matlab contains, to download I use from Matlab. The extension should be *.m or the code should appear. Thank you!