Question

Generate number from a probability distribution

I am trying to generate numbers from a probability distribution using the inverse cdf method. However, I can not calculate the C...

3 years ago | 1 Answers | 0

Question

Force polynomial fit through multiple points

I have a set of x, y data that I want to fit to a quadratic polynomial. Is it possible to force the fit through BOTH zero point...

3 years ago | 1 Answers | 0

Question

Parfor error: parfor variable is indexed in different ways

I am trying to convert my code to run in parallel, but I get an error when I use the parfor : "in a parfor loop, variable is ind...

3 years ago | 1 Answers | 0

Question

Plot figures in property editor mode automatically

If you open a figure and select either edit-figure properties or edit-axis properties multiple figures will be displayed in the ...

3 years ago | 1 Answers | 0

Question

Function handle of a sum

How can I define a function that involves a summation? for example, a function f = @(x) e^(-n*x), where the function is a su...

3 years ago | 1 Answers | 0

Question

Normalize histogram of normally distributed data

How can I normalize a histogram of normally distributed points? I have tried using histnorm from the file exchange and a few oth...

3 years ago | 2 Answers | 0

Question

Matlab won't install on Mountain Lion

What do you have to do to install MATLAB 2012b in Mountain Lion? I instaled quartz (which I guess is the new version of X11), bu...

4 years ago | 4 Answers | 0

Question

Show tick marks above plot

I have a 3D plot that I am viewing from the top, so that it looks like a 2D plot. How can I display the tick marks above the plo...

4 years ago | 3 Answers | 0

Question

Y fit error for weighted levenberg marquart algorithm

I am using the weighted levenberg marquard algorith, and I want to calculate the error for each fitted x value. I have a vector ...

4 years ago | 0 Answers | 0

Question

Plot heatmap with 3 variables

I have x,y, z data, where x and y are coordinates, and z is the measured value. How can I created a 2D plot, where low values of...

4 years ago | 2 Answers | 1

Question

Rotate 3D plot in PowerPoint

I want to be able to rotate a 3D plot in powerpoint. I found a few exchange files that rotate a plot and save it as a gif, but t...

4 years ago | 1 Answers | 1

Question

Transpose column from .csv file

How can I transpose a column that is read from a .csv file? Currently I am reading the column, transposing it, and reprinting i...

4 years ago | 1 Answers | 0

Question

Calculate Uncertainty for fitted parameter from least squares fit

How can I get the uncertainty for each of the fitted parameters after doing a least squares curve fit? I used tools-basic fitti...

4 years ago | 1 Answers | 0

Question

Adjust width of error bars

How can I adjust the width of the error bars on a plot that I have already made? I found a few downloadable functions that clai...

4 years ago | 1 Answers | 0

Question

Save .csv file as plain text

Currently I am saving data to a .csv file, opening that file, and extracting certain columns. However, the only way that Matlab...

4 years ago | 1 Answers | 0

Question

Save data to .txt file

How can I save data to a txt file? I just want to create a simple two column text file, where the first column is the data from...

4 years ago | 1 Answers | 0

Question

Open TIF image stack

How can I open a TIF image stack, so that I can use each of the images separatly?

4 years ago | 1 Answers | 0

Question

Code in script is printing to command window

I am editing a program that someone else wrote, and when I run it, each time it prints a number to the command window. I would ...

4 years ago | 2 Answers | 1