Answered
Subscription assignment dimension mismatch.
Type this code in the matlab command line: dbstop if error Then run your code and it will stop on a specific line. That line w...

6 years ago | 0

Answered
Meshgrid function different order
x = 0:1:5; y = 0:1:5; z = 0:1:5; [y_a, z_a, x_a] = meshgrid(y,z,x); Mesh = [x_a(:),y_a(:),z_a(:)] Or probably better: x = ...

6 years ago | 1

| accepted

Answered
How to save the data of x (in my folowing case) to an Excel file after each loop .
help xlswrite and look at the 'range' option. M.

6 years ago | 0

Answered
Personalising contour plot, map colour scheme
Would something like this work for you?: R = [linspace(0,1,100) ones(1,43) linspace(1,1,100)]; G = [linspace(0,1,100) ones(1,4...

6 years ago | 1

| accepted

Question


Multiobjective optimisation with 2D (empirical) distributions - am I doing this right?
Hi all, I have two parameters that I can vary in order to get two outputs (i.e. for every combination of X and Y I get a result...

6 years ago | 1 answer | 0

1

answer

Question


Equation for imgaussfilt?
Hi, I have been using the Matlab built-in function imgaussfilt for some time now and I need to report the specific Gaussian use...

6 years ago | 1 answer | 0

1

answer

Question


Fast 2D distance calculation
Hi all, Many of the codes I am currently using depend on a simple calculation: the distance between a single point and a set of...

6 years ago | 2 answers | 0

2

answers

Question


Power fit with 3 parameters
Hi all, I have 3 groups of XY data, these data are each pretty well described by a power function. Each group reflects a differ...

6 years ago | 1 answer | 0

1

answer

Question


Calculating mean squared error or maybe MISE
Hi all, I'm interested in comparing different bivariate histograms to an underlying 2D probability density function. Additi...

6 years ago | 1 answer | 0

1

answer

Question


Multidimensional optimisation of a collected 4D dataset
Hi all, I have collected some data where I manipulate 2 variables (X, and Y) and observe 2 outcomes (A and B). I now want to f...

6 years ago | 0 answers | 0

0

answers

Question


Merging tables using outerjoin doesn't work
Hi all, I have two tables which I would like to merge/join. These tables have a series of shared columns and then one or more c...

6 years ago | 0 answers | 0

0

answers

Answered
How to show a whole table in Matlab variable window
I found why this was happening in my case - if you assign an empty value to a table column the variable editor switches from sho...

6 years ago | 0

Question


How to show a whole table in Matlab variable window
Hi, When I make a large table and try to view it in the variable view window in the Matlab UI, instead of seeing all the values...

6 years ago | 1 answer | 0

1

answer

Question


How to understand/convert the output of ksdensity and mvksdensity
Hi all, I am trying to use Matlab's kernel smoothed density estimate functions like mvksdensity to create a smoothed 'histogr...

7 years ago | 0 answers | 0

0

answers

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

7 years ago

Solved


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

7 years ago

Solved


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

7 years ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

7 years ago

Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

7 years ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

7 years ago

Solved


NO _________ ALLOWED....
So you're given a sentence where if there is a particular word in the sentence then the output is 1, if it is not there then the...

7 years ago

Question


Find points on a 3D convex hull surface
Hi all, I have a 3D convex hull and would like to populate it's surface with points. To be more specific, the convex hull giv...

7 years ago | 0 answers | 0

0

answers

Answered
Line of sight between points in a logical matrix
I think I have found a relatively simple solution that should also be quite fast. I use the inbuilt function improfile which was...

7 years ago | 1

Question


Line of sight between points in a logical matrix
Hi all, I am trying to work out the 'line of sight' between points in a logical matrix, i.e. if zeros represent floor space a...

7 years ago | 2 answers | 0

2

answers