Sky Sartorius
Followers: 0 Following: 0
Aerospace engineer Professional Interests: aircraft design, UAVs, optimization, rotorcraft, education
Feeds
已回答
Randomly select a number from a column of a stored matrix, stores the respective row
You can use randi to randomly generate the index you need, rowInd = randi(256,1); then use that index to pull out the row from...
Randomly select a number from a column of a stored matrix, stores the respective row
You can use randi to randomly generate the index you need, rowInd = randi(256,1); then use that index to pull out the row from...
3 years 前 | 1
| 已接受
已回答
Plot x^2+y^2=4
There are a few ways to go about this. One that is somewhat agnostic to what the equation is trying to represent (in this case, ...
Plot x^2+y^2=4
There are a few ways to go about this. One that is somewhat agnostic to what the equation is trying to represent (in this case, ...
4 years 前 | 1
| 已接受
已回答
select random number from an array with probabilities
You can query the cumulative probabilities: S = [4, 3.9, 3.8]; w = [0.5, 0.4, 0.1]; w = w/sum(w); % Make sure probabilites ad...
select random number from an array with probabilities
You can query the cumulative probabilities: S = [4, 3.9, 3.8]; w = [0.5, 0.4, 0.1]; w = w/sum(w); % Make sure probabilites ad...
4 years 前 | 1
已回答
get the x-value of a point on curve
This is a table lookup / interpolation problem. For your data, you'll first have to make sure there aren't any repeated y values...
get the x-value of a point on curve
This is a table lookup / interpolation problem. For your data, you'll first have to make sure there aren't any repeated y values...
4 years 前 | 5
已回答
how do i open a browser in matlab ?
Use uigetfile: https://www.mathworks.com/help/matlab/ref/uigetfile.html Or if you have the toolbox, help uigetimagefile
how do i open a browser in matlab ?
Use uigetfile: https://www.mathworks.com/help/matlab/ref/uigetfile.html Or if you have the toolbox, help uigetimagefile
4 years 前 | 0
已回答
Size of a figure that I copy from Matlab to Powerpoint
I find that MS products sometimes have behavior as though they're taking a guess at what the pasted figure size should be. I fin...
Size of a figure that I copy from Matlab to Powerpoint
I find that MS products sometimes have behavior as though they're taking a guess at what the pasted figure size should be. I fin...
4 years 前 | 0
已回答
How can I create a 3D plot of data with dots of different color?
Use a scatter plot and CData: n = 100; xData = 1:n; % Placeholder - I assume you have additional information about the data to...
How can I create a 3D plot of data with dots of different color?
Use a scatter plot and CData: n = 100; xData = 1:n; % Placeholder - I assume you have additional information about the data to...
4 years 前 | 0
已回答
How to create an object using class name
A quick and dirty approach that will work in many cases is to use eval: function new = createNewObjectOfThisClass(original) ne...
How to create an object using class name
A quick and dirty approach that will work in many cases is to use eval: function new = createNewObjectOfThisClass(original) ne...
4 years 前 | 0
已回答
Converting a row to diagonal matrix
Another guess at the intended meaning of the question could be that the values should be filled along the diagonals (instead of ...
Converting a row to diagonal matrix
Another guess at the intended meaning of the question could be that the values should be filled along the diagonals (instead of ...
4 years 前 | 0
提问
What method do I overload to control display behavior in the workspace window?
When using a subclass of double (for example the ExtendDouble class from the <https://www.mathworks.com/help/matlab/matlab_oop/b...
6 years 前 | 0 个回答 | 0
0
个回答已回答
X Y Z coordinates matrix
You can use the |cat| command to 'stack' your three 2d matrices into a single 3d matrix: M = cat(3,x,y,z); This will giv...
X Y Z coordinates matrix
You can use the |cat| command to 'stack' your three 2d matrices into a single 3d matrix: M = cat(3,x,y,z); This will giv...
7 years 前 | 0
| 已接受
已回答
Generate Random numbers from a 2 D probability density function
Conceptually, you can generate random numbers for any arbitrary distributions by # Converting the pdf to a cdf. # Generating...
Generate Random numbers from a 2 D probability density function
Conceptually, you can generate random numbers for any arbitrary distributions by # Converting the pdf to a cdf. # Generating...
7 years 前 | 0
已回答
How to create an Object insertable in a 3D plot?
One approach could be to leverage the plotted object's XData, YData, and ZData, homogeneous coordinates, and the |makehgtform| f...
How to create an Object insertable in a 3D plot?
One approach could be to leverage the plotted object's XData, YData, and ZData, homogeneous coordinates, and the |makehgtform| f...
7 years 前 | 0
已回答
Reaching the element of an array passed to a function
The first step needs to be to find the indices of the array that correspond to the conditional statement. You can use something ...
Reaching the element of an array passed to a function
The first step needs to be to find the indices of the array that correspond to the conditional statement. You can use something ...
7 years 前 | 0
| 已接受
已回答
How do i fit my data with two functions and a knot between them
The |tanh| function can be handy for creating a one-liner piece-wise function for feeding into a curve fitting tool. If you don'...
How do i fit my data with two functions and a knot between them
The |tanh| function can be handy for creating a one-liner piece-wise function for feeding into a curve fitting tool. If you don'...
7 years 前 | 0
| 已接受