photo

Zach Dunagan


Attivo dal 2017

Followers: 0   Following: 0

Statistica

  • Thankful Level 3

Visualizza badge

Feeds

Visto da

Risposto
Fitting a lines to a scatter plot?
Here is my code... How would I fit a trend line to this scatter plot? % clear variables and windows clc, clear, clear al...

quasi 7 anni fa | 0

Domanda


Fitting a lines to a scatter plot?
Hello, I am taking a course with a ton of data analysis. I switched over to Engineering Equation Solver just because of the g...

quasi 7 anni fa | 5 risposte | 0

5

risposte

Domanda


Do you see an error?
Do any of you see a problem with the Matlab code? The output from Python and Matlab are the same except 'wps'. The outputs fo...

quasi 7 anni fa | 0 risposte | 0

0

risposte

Domanda


Do we have any proficient users in Python?
I've been working on converting Python to Matlab for awhile now. I have everything plotting, saving, and outputting. However, th...

quasi 7 anni fa | 0 risposte | 0

0

risposte

Domanda


How to save figures directly to a folder without having them display?
I have a set of plots, in other words figures, that need to be saved directly to the folder. I have the code set up where it sav...

quasi 7 anni fa | 1 risposta | 0

1

risposta

Domanda


Do you see any errors?
I am nearly finished with the code I am converting just trying to figure out a plot and then I need to figure out how to save mu...

quasi 7 anni fa | 0 risposte | 0

0

risposte

Domanda


Reshape won't work for my application. Why?
Converting a line of Python code to matlab. Here is the Python. Fy_bern=np.sum(np.reshape(forceDist,(numPanels,1))*(np.s...

quasi 7 anni fa | 1 risposta | 0

1

risposta

Domanda


How to save multiple plots to a single folder?
Here is the path to the folder. filepath = 'C://Users//Zach Dunagan//Desktop//Frame//' This is what I have attempted. ...

quasi 7 anni fa | 1 risposta | 1

1

risposta

Domanda


Help converting Python to Matlab
For now I will start with this single line of code. Python dPSto1[:,n]=1/2*rho*(np.reshape((Uinf**2-tangVelFoil**2),(num...

quasi 7 anni fa | 1 risposta | 0

1

risposta

Domanda


Title with multiple outputs
<<https://www.mathworks.com/matlabcentral/answers/uploaded_files/95333/mulitple%20output%20example.JPG>> Here is my code: ...

circa 7 anni fa | 2 risposte | 0

2

risposte

Domanda


Help finding error in Matlab code
I have two sets of code, one in Python and the other in Matlab. I am converting Python to Matlab, but ran into a error that I am...

circa 7 anni fa | 2 risposte | 0

2

risposte

Domanda


if else statements with asking user for input
My code is attached. Is there a way to only have one prompt at the beginning of the if else statements, instead of 2? I have 4 d...

circa 7 anni fa | 1 risposta | 0

1

risposta

Domanda


Converting Python to Matlab
Here is my Python code... import numpy as np import matplotlib.pyplot as plt import copy def SourceDis...

circa 7 anni fa | 2 risposte | 0

2

risposte

Risposto
Converting Python to Matlab
How would I insert zeros in the diagonal line of these 128 x 128 matrices? nSource = -(sin(theta-transpose(theta)))*ups + (...

circa 7 anni fa | 0

Domanda


Converting Python to Matlab
Spent a few hours on trying to figure out why the outputs are different, no luck. Python and Matlab are in a txt file along with...

circa 7 anni fa | 3 risposte | 0

3

risposte

Risposto
Stumped again... Converting Python to Matlab
The only value that appears is the last one in the array. xp(66:end) = flipud(xp(1:numPanels/2)); yp(66:end) = -flip...

circa 7 anni fa | 0

Domanda


Stumped again... Converting Python to Matlab
Here is the bit of Python code I am trying to convert to Matlab. code: # thetas for each panel in global frame theta=n...

circa 7 anni fa | 2 risposte | 0

2

risposte

Domanda


Help me with indexing please?
Trying to convert Python to Matlab. Below is the Python code along with the output. import numpy as np import matplotlib...

circa 7 anni fa | 2 risposte | 0

2

risposte

Domanda


How to match initial index?
I am very close to getting the index in Python to match with Matlab. Here is the output of Python... 0.06 0.058125 0.056...

circa 7 anni fa | 2 risposte | 0

2

risposte

Domanda


How to add to index in for loop?
I am converting Python to Matlab. Here is Python code. # collocation points xc=np.zeros((numPanels,1)) yc=np.zeros((nu...

circa 7 anni fa | 1 risposta | 0

1

risposta

Domanda


How to assign negative and positive values to specific numbers in array?
How would I flip the signs in the array? a = xp', where 'a' is the array. ans = 0.0581 0.0562 0.0544 ...

circa 7 anni fa | 1 risposta | 0

1

risposta