Zach Dunagan
自 2017 起处于活动状态
Followers: 0 Following: 0
Feeds
已回答
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...
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...
7 years 前 | 0
提问
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...
7 years 前 | 5 个回答 | 0
5
个回答提问
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...
7 years 前 | 0 个回答 | 0
0
个回答提问
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...
7 years 前 | 0 个回答 | 0
0
个回答提问
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...
7 years 前 | 1 个回答 | 0
1
个回答提问
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...
7 years 前 | 0 个回答 | 0
0
个回答提问
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...
7 years 前 | 1 个回答 | 0
1
个回答提问
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. ...
7 years 前 | 1 个回答 | 1
1
个回答提问
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...
7 years 前 | 1 个回答 | 0
1
个回答提问
Title with multiple outputs
<<https://www.mathworks.com/matlabcentral/answers/uploaded_files/95333/mulitple%20output%20example.JPG>> Here is my code: ...
7 years 前 | 2 个回答 | 0
2
个回答提问
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...
7 years 前 | 2 个回答 | 0
2
个回答提问
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...
7 years 前 | 1 个回答 | 0
1
个回答提问
Converting Python to Matlab
Here is my Python code... import numpy as np import matplotlib.pyplot as plt import copy def SourceDis...
7 years 前 | 2 个回答 | 0
2
个回答已回答
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 + (...
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 + (...
7 years 前 | 0
提问
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...
7 years 前 | 3 个回答 | 0
3
个回答已回答
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...
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...
7 years 前 | 0
提问
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...
7 years 前 | 2 个回答 | 0
2
个回答提问
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...
7 years 前 | 2 个回答 | 0
2
个回答提问
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...
7 years 前 | 2 个回答 | 0
2
个回答提问
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...
7 years 前 | 1 个回答 | 0
1
个回答提问
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 ...
7 years 前 | 1 个回答 | 0