Community Profile

Pontus Vikstål

Last seen: 2 månader ago Active since 2016

Content Feed

View by

Question

Problem with white lines showing up when exporting surf plots
How can I get rid of white lines that appear when you export a surf plot as eps or pdf? I've already checked out the following ...

mer än 3 år ago | 1 answer | 1

1

Question

Why does the resolution become extremely bad when increasing the linewidth when using the the circle as marker.
As the title is conveying. % Example x = -pi:pi/10:pi; y = tan(sin(x)) - sin(tan(x)); % Plot sc = scatter(x,y,3*100); sc....

mer än 3 år ago | 2 answers | 0

2

Question

How to turn off cmd+mouse wheel zoom in live editor Matlab
As the title says; How can I turn off the feature that zooms in on the live editor when holding down the cmd button and using th...

mer än 3 år ago | 3 answers | 7

3

Switch two row of matrix
This way might be even faster. A = [1 3 4; 2 4 5] x = [0 1;1 0]; A = x*A Then there's also this way A = [1 3 4; 2 4 5] A =...

nästan 4 år ago | 1

Question

How to pass a struct as name-value-pairs to a function?
Is it possible to convert a struct to name-value-pairs that is then fed to a function that takes Name-Value pairs as input argum...

nästan 4 år ago | 2 answers | 1

2

Question

Optimize function with Bayesian Optimization
Hi, I'm working with a simple example in trying to understand Bayesian Optimization. Suppose I want to find the minimum of the...

ungefär 4 år ago | 1 answer | 0

1

Question

Matlab container map with repeated keys
Consider the following container map k = ["Jan" "Feb" "Jan" "Mars"]; % Notice that there are two repeated elements which is "Ja...

ungefär 4 år ago | 0 answers | 0

0

Question

How to convert array to tuple?
How can I convert an array a = [1, 2, 3]; to a tuple a = (1, 2, 3) Or let's suppose that I have a matrix. A...

mer än 4 år ago | 1 answer | 0

1

R2018b / R2019a runs very slow on macOS 10.14
I have exactly the same problem on my MacBook. When I click on a line in a script it takes about a second cursor to appear, it's...

mer än 4 år ago | 1

Question

How to create N-tuples in Matlab?
What would be the easiest way to create a list of n-tuples in Matlab? For example, if I want to generate all possible 3-tuple...

mer än 4 år ago | 1 answer | 0

1

Question

How to create a set subsets?
How can I create a set S that includes a set of subsets. This is how it would look like in python S = [[1,4,7],[1,4],[4,5,7],...

mer än 4 år ago | 1 answer | 0