Community Profile

photo

Alexander Engman


Last seen: 3 years ago Active since 2016

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


How to recognize gender by name
Hi! I have a list (1 column, 601 rows) of the most popular male and female surnames and they are marked in another column as ...

5 years ago | 2 answers | 0

2

answers

Question


Changing values of axis
Hi! I have a plot such as in the attached image. As you can see, the y-axis values range from 1E-7 - 10E-7. I would like to r...

6 years ago | 2 answers | 0

2

answers

Question


How to turn values in one matrix corresponding to a specific element in another into NaN
Hi! If I have two matrices: A=[1 2 NaN; 4 NaN 6; NaN 8 9] B=[11 12 13; 14 15 16; 17 18 19] And I want to turn the ...

6 years ago | 1 answer | 0

1

answer

Question


Drawing boundary lines in contour plot
Hi! I am creating a contour plot which I have attached. The data comes from a matrix named OPT that contains the values that ...

6 years ago | 0 answers | 0

0

answers

Question


White artifacts in colorbar for PDF/EPS plots
Hi, I know this is a very common problem. I was using Matlab 2016b and experienced the problem that these white lines were cr...

6 years ago | 3 answers | 0

3

answers

Question


Creating a 3D surface of multiple lines
Hi! I have two variables (Vf,r) that in my code has generated values of a function (f). Vf is the volume fraction of particle...

6 years ago | 1 answer | 0

1

answer

Question


Duplicating columns into a matrix
Hi! I think this is very easy to solve, but I simply dont know what is the easiest way. Let's say I have a vector: A=[1 ...

6 years ago | 2 answers | 0

2

answers

Question


Predicting behavior of unknown functions based on known functions
Hi! Lets say I have data that I have used to fit two functions: y1=a*x^b+c %for K=10 y2=d*x^e+f %for K=20 y1 i...

6 years ago | 1 answer | 2

1

answer

Question


Extracting coefficients from cell array with fitted data
Hi! Suppose I have a cell array where each element contains a 1x1 cfit, each fit with its unique set of coefficients a,b and ...

6 years ago | 1 answer | 1

1

answer

Question


Underwater soundwave for different starting angles
Hi! I have previously asked about a similar problem but I will try again since I have since then corrected my codes a bit and...

7 years ago | 2 answers | 0

2

answers

Answered
Calling function with different variables
Thank you! I understand what I did wrong now. Just one question, from where does the number 90 come from, in: X = zeros(...

7 years ago | 0

Question


Calling function with different variables
Hi! I have a function which looks like this: function dZ=undervatten(n,x,Z) p=[5.8795547370783 14.4873921534832 257.1...

7 years ago | 2 answers | 0

2

answers

Question


Soundwaves underwater problem not working correctly
Hi! I have a question regarding problem 7 in the attached document. I have looked at some of the other posts regarding thi...

7 years ago | 0 answers | 0

0

answers

Answered
Problem with finding roots of an interpolated function
Hi John! Thank you for your very detailed and comprehensive answer. I am afraid that I am not allowed to use the code that...

7 years ago | 0

| accepted

Question


Problem with finding roots of an interpolated function
Hi! I am having problem with an assignment. I am supposed to simulate a pendulum with Eulers method. I think I have managed t...

7 years ago | 2 answers | 0

2

answers

Question


Timing multiple Matlab functions
Hi! I have two different ways of calculating a factorial of any number, for this program its 150!. I want to time the two fun...

8 years ago | 2 answers | 0

2

answers

Question


Problem with storing for-loop values in array
Hi! I know the question of storing for-loop values in an array has been asked before. I am trying to compare the time it t...

8 years ago | 1 answer | 0

1

answer

Question


Finding solutions to equations
Hi! I have a question regarding solving functions. I have a specific function I want to solve but rather than post it here, I...

8 years ago | 1 answer | 0

1

answer

Question


Problem with an equation
Hi! I have a problem writing an equation in Matlab. The variables and the equation look like this: x=(-3:0.001:3) y=(...

8 years ago | 1 answer | 0

1

answer

Question


Problems with exp-functions
Hi! I want to make a function of x. This is my code: x=(0:0.001:5); %x-values f=2*x*exp(-x); plot(x,f) But M...

8 years ago | 1 answer | 0

1

answer