photo

Joshua


Last seen: meer dan een jaar ago Active since 2017

Followers: 0   Following: 0

Statistics

  • Knowledgeable Level 2
  • First Answer

View badges

Feeds

View by

Answered
How do I plot this E= (|I|^2)/8π^2[costheta-costheta^2]/(2).
I was a little confused by what belonged in the denominator and numerator, along with what "I" is (I took it to be the imaginary...

meer dan 7 jaar ago | 0

Answered
How can I get the wall-clock time during my simulation, once an entity reaches a certain block?
Is this what you are looking for? It gives you the current time in seconds from the start of the day. You could modify it to sui...

meer dan 7 jaar ago | 0

Answered
How to efficiently arrange a FOR-LOOP if we have two condition with different nValue
I think this answers your first question at least. Might take care of the second question as well since there is just one loop n...

meer dan 7 jaar ago | 0

Answered
How to combine multiple excel files into one file with data in separate columns?
This is a bit complex, but worked for two random excel files. You can simplify if the two columns in each excel file are always ...

meer dan 7 jaar ago | 0

Answered
How do you integrate a constant?
theta = 0.01305 miu = 0.0546 const = @(x) tan(theta + miu)+0*x r = integral(const,0,1)

meer dan 7 jaar ago | 3

| accepted

Question


Why do certain line markers show up faded when saving high resolution images using print?
I am saving MATLAB figures as high resolution .png files to use in a paper. Version is R2016a. The markers for triangles, square...

meer dan 7 jaar ago | 1 answer | 0

1

answer

Answered
Slicing a 3d cube-like surface with a plane
Assuming that you have the cube shaped object as a list of coordinates, you could define the plane as an equation, and then chec...

meer dan 7 jaar ago | 0

Answered
How to find if graph is connected
I think this is what you are looking for. The line with the variable 'con' is not really necessary, but if you need to reference...

meer dan 7 jaar ago | 0

| accepted

Answered
What function (if any) can I use to simplify symbolic equation in terms of another variable?
If you define your variables using the 'syms' function, you can create equations that will simplify. For example, the code ...

meer dan 7 jaar ago | 0

Answered
Counting the number of steps taken by the sorting algorithm
X = [9 2 5 7 3 8 1 4 6 0 -2 -7]; n = length(X); numSteps=0; for i=1:n-1 A=X(i); for j=i+1:n; if X(...

meer dan 7 jaar ago | 0

| accepted

Answered
Subscript indices must either be real positive integers or logicals.
I am not really sure what BT is, but depending on your values of K1, K2, and L, it probably won't be an integer. For example, wi...

meer dan 7 jaar ago | 1

| accepted

Answered
How to solve equations with possible values for variables?
This is not a very elegant solution, but it works. clear clc syms a1 a2 a3 f=symfun(4*a1+3*a2+2*a3,[a1,a2,a3]) ...

meer dan 7 jaar ago | 0