Tagged Questions

12 views

matlab: cdfplot for relative error

The figure shown above is the plot of cumulative distribution function (cdf) plot for relative error (attached together the code used to generate the plot). The relative error is defined as ...
17 views

Get a set of points from Fourier plot on Matlab?

I have a program that collects raw data and also does a Fourier transform to get complex numbers. When I feed the raw data into Matlab to do its own FFT, I can get a nice plot of power on frequency. ...
28 views

119 views

Matlab plot3 see-through element

I am plotting the following Stewart platform in Matlab using plot3 and fill3. The green line that I have marked in the red ...
2k views

Plotting joint distribution of 2-D random variable

I have some data which is basically a list of order pair (X,Y) and I want to see the joint distribution of this 2-D random variable. Is there any tool that provide this facility. Does Matlab has this ...
305 views

How to a plot a line for ax+by-c in MATLAB?

The title basically says it all. I'm doing an assignment and need to include a plot of my scatter and the line generated by linprog(). I ran ...
205 views

Matlab coding help

I need to graph the following functions on MATLAB: x(t)=(3/2)sin⁡(2t); y(t)=(-4/√15)e^(-1/2 t) sin(√15/2 t)+2e^((-1/2 t) )cos⁡(√15/2 t); h(t)=x(t)+y(t). I have the data points for this functions. I ...
181 views

How to do I this linear least- squares problem?

This is what i am given: $y=[3, 5, 5, 8, 10, 12, 15, 16, 18, 19]$ and $t=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]$ experimental data Solve x=A\b Thanks got it
11k views

How to use polyfit() function in Matlab?

First of all i am new to Matlab, and not sure whether to use polyfit or something else for my problem. I plotted a graph with the following matlab code: ...
1k views

Making sense out of plotting 3D graphs in octave/matplotlib

Recently I have a few times I wanted to plot 3D graphs in some applications (tried matplotlib and octave), noticing similar syntax, but I don't understand what it does so its hard to modify it ...
1k views

What does the Matlab loglog plots do that is useful?

If there is a exponential relationship $y = e^x$ and we take the logarithm of this we can see a linear relationship $\ln (y) = x$. So we could plot the logarithm of the y-axis values against the x ...