Posted

Cannot generate picture files using "print"

Hello, while using the "print" command to generate a JPG file, I obtain the following error messages: Undefined operator '==' f...

5 months ago | 590 views

Question

How do I make both plots visible using plotyy?

Hello, I am using the following code to generate a double plot: [ax,h1,h2]=plotyy(X1,Y1,X2,P2); xlabel('x','Fontname'...

2 years ago | 1 Answers | 0

Posted

Problem printing Greek letters on Mac

I am having problems printing Greek letters in JPG plots generated with Matlab on my Mac. Letters are cropped. The same routines...

4 years ago | 1673 views

Posted

axis limits with datetick

Hello, I am trying to set upper and lower limits on an axis in which the datetick function is applied to numbers obtained using ...

6 years ago | 7372 views

Posted

integration in a subroutine with coefficients assigned by main function

Hello, I would like to calculate the integral (in x) of a function of the type: function y=myfun2(x) y = 1./(x.^k1-2*x-k2);...

6 years ago | 1759 views

Posted

retrieving coefficients of confidence bounds from fit

Hello, I am using the FIT function from the Curve Fitting Toolbox, and would like to automatically retrieve the coefficients pe...

6 years ago | 1919 views

Posted

goodness of fit test for beta distribution

Hello, is there a way I can test the goodness of fit of a sample to a generalized beta distribution whose parameters (lambda1, l...

6 years ago | 3301 views

Posted

executing consecutive DOS commands

Hello, I would like Matlab to execute several consecutive DOS commands. The commands are related in the sense that the (i+1)th c...

6 years ago | 1979 views

Posted

retrieving upper and lower values of confidence bounds in curve fitting toolbox

Hello, If I use the following code to perform a nonlinear fit on data: opts=fitoptions('Method','Nonlinear','Normalize','Off','...

7 years ago | 6957 views

Posted

plotting tick labels with 2 decimal figures

Hi, how can I tell Matlab to plot labels (say on the y axis) with two decimal figures (e.g. 0.27 instead of 0.2667)? Thanks.

7 years ago | 2255 views

Posted

Transforming a vector into a set of separate parameters

Hello, I would like to use inverse distribution functions and to input distribution parameters automatically from user-defined ...

7 years ago | 944 views

Posted

combined 3-D plot with surf, scatter3 and equal axes

Hello, Is it possible to produce a 3-D plot with two surfaces: - one using the "surf" function - one using the "scatter3" func...

7 years ago | 4490 views

Responded

Re: plotting RGB colors

Hi John, Thanks for reply. My RGB codes are in the 0-255 format. How can I convert them to the 0-1 range? Thanks.

7 years ago | 2550 views

Posted

plotting RGB colors

Hello, I have an Nx6 matrix in which: column 1: X-coordinate column 2: Y-coordinate column 3: Z-coordinate column 4: R column 5...

7 years ago | 2550 views

Posted

plotting (X,Y,Z) data as a surface

Hello, I need to plot 3-D data currently in the form [X Y Z] as a surface. X ad Y are irregularly spaced and Z is not a function...

7 years ago | 3035 views

Posted

indices in XTickLanel

Hi, I would like to use the following (formatted) text to label the x-axis of a plot: I_1^(^q^) When I include the text in the...

7 years ago | 1587 views

Posted

associating text to colorbar when axis is not visible

Hi, I am plotting a 3D surface using a plan view [view(0,90)]. I have associated a colorbar to the z-coordinate variable. How c...

8 years ago | 2874 views

Posted

adding text to non-axis colorbar

Hello, I am plotting using the "surf" function and would like a plan view (i.e. view(0,90)). I have added a colorbar for the z...

8 years ago | 1957 views

Posted

evaluating generic inline functions

Hello, Say I have an inline function 'x1^2+x1*x2+x2^2' which I would like to evaluate at N values from an Nx2 matrix (the colum...

8 years ago | 3431 views

Posted

adding units label to numerical colorbar

Hello, I would like to add measurement units to a numerical (i.e. non-textual) colorbar. For instance, if the colorbar values ...

8 years ago | 23216 views

Posted

setting limits for colorbar ranges

Hello, I would like to set my own limits to a colorbar associated with a SURF plot. For instance, I am plotting a parameter wh...

8 years ago | 83776 views

Posted

generation of random values for beta distribution

Hello, I would like to generate samples of random values from beta distributions. The BETARND function only allows to operate ...

8 years ago | 2074 views

Posted

plotting legend in black for colored data sets

Hi, I have a plot with multiple clusters of data sets plotted in it. Each cluster comprises four data sets, which are plotted ...

9 years ago | 1315 views

Posted

plotting legend

Hi, I have a plot with multiple data sets. Each data set is plotted using a different color (red, blue, etc.) and different li...

9 years ago | 1402 views

Responded

Re: plotting greater than or equal to symbol

Thanks. However, I need to use the sumbol in a multi-row string so I can't assign the position exactly as required by TEXT. Se...

9 years ago | 16821 views

Posted

plotting "greater than or equal to" symbol

Hi, is it possible to plot the "greater than or equal to" symbol using PLOT? If yes, how? Thanks.

9 years ago | 16821 views

Responded

Re: simultaneous optimization of 2 functions

Hi John, Thanks for your suggestion. I now have a problem with the constraint function as FMINCON requires two outputs (equal...

9 years ago | 2771 views

Responded

Re: simultaneous optimization of 2 functions

Hi Steven, Thanks for your reply. However, it is not clear to me how I can include the other inputs in the objective and cons...

9 years ago | 2771 views

Posted

simultaneous optimization: better description of previous post

I am trying to optimize a function of the vector X (and other constant inputs) by minimization of an objective function. Howev...

9 years ago | 1072 views

Posted

simultaneous optimization of 2 functions

Hello, I have two functions of a vector X (and other inputs which can be considered constant) which I should optimize simultan...

9 years ago | 2771 views