Question

Triple Summation in Matlab

I have the below triple summarion that I need to incorporate into a MATLAB code. Could you please help me with the code of such ...

1 year ago | 1 answer | 0

Question

How to code a multi-objective mixed integer linear (MILP) programming problem in MATLAB?

I have an MILP model with two objective functions, constarints, and upper and lower limits. Any helpful examples of similar co...

1 year ago | 2 answers | 0

Question

Histogram of 2 sets of data in the same plot without the first becoming transparent

Hi, The following code is supposed to generate a plot of two overlapping histograms. However, for some reason the line in the...

5 years ago | 2 answers | 0

Answered

Histogram of 2 sets of data in the same plot without the first becoming transparent

I want somethings similar to this attached figure. In my case, the pink line is transparent (sent to the back). Thanks.

Histogram of 2 sets of data in the same plot without the first becoming transparent

I want somethings similar to this attached figure. In my case, the pink line is transparent (sent to the back). Thanks.

5 years ago | 0

Question

How to fix a randomly generated sample in Matlab after making some changes to the code?

I need to have the same sample (same data points) that was generated from a large set of data in order to make some comparisons ...

5 years ago | 1 answer | 0

Question

Is it possible to use Matlab's lsqlin to find a single point (x,y) containing two values?

Hello, I'm trying to obtain an inverse solution of a single point in the x,y coordinates: (x,y). I know how to use the lsqlin...

5 years ago | 0 answers | 0

Question

Adding two functions to 1 m-file, while making variables in the two functions accessible to both?

Hello, I have 2 Matlab functions that I want to combine into 1 m-file. The first function "F1" needs data from the second fun...

5 years ago | 1 answer | 0

Question

Obtaining a list of (x, y) points that correspond to specific values of concentration that are chosen at random

Hello, I need to generate a matrix of points given that they meet the condition that at these (x,y) points concentration is g...

5 years ago | 1 answer | 0

Question

Generating a random list of (x, y) points that satisfy a condition?

So I need to generate a matrix of points given that they meet the condition that at these (x,y) points concentration is greater ...

5 years ago | 1 answer | 0

Question

Creating a new matrix by interpolating two other matrices

Hello, I need to write a code that creates a new matrix C based on the values of matrix A and B, where A and B are 61x10 matr...

5 years ago | 2 answers | 0

Question

"Subscript indices must either be real positive integers or logicals." again! See codes

Hi, I have created two functions in Matlab. One is supposed to produce a concentration profile for a given location and time,...

6 years ago | 4 answers | 0

Question

Loops, indexing and calling other functions (for the given code)

I'm trying to write a function that recalls another function to do the calculations. The values of x and t are already being rea...

6 years ago | 1 answer | 0

Question

Using the output of one m-file in Matlab as the input to another? Establishing the connection

I have created the functions but dont know how to proceed? like how to establish the connection? Let's say that: 1) the f...

6 years ago | 2 answers | 0

Question

Why do I get the error 'Subscript indices must either be real positive integers or logicals ' for the below code?

xa = (x-xc_t(t)+bx_t(t))/(sr2*betax_t(t));

6 years ago | 1 answer | 0