Thomas Satterly
Followers: 0 Following: 0
Feeds
已回答
Pre-allocating memory for a while loop
If you don't know how large your arrays need to be for preallocating the entire array, what you can do is allocate "chunks" of t...
Pre-allocating memory for a while loop
If you don't know how large your arrays need to be for preallocating the entire array, what you can do is allocate "chunks" of t...
5 years 前 | 0
已回答
Adding a Graph into a uipanel GUI
You need to create an axis object where the data will be plotted and pass this axis as the first argument to your plot function....
Adding a Graph into a uipanel GUI
You need to create an axis object where the data will be plotted and pass this axis as the first argument to your plot function....
5 years 前 | 0
已回答
How to create 2D matrix from 3D without a loop?
Here's one way to do it with vectorized code. Calculating the column index list can probably be done better, but it gets the ide...
How to create 2D matrix from 3D without a loop?
Here's one way to do it with vectorized code. Calculating the column index list can probably be done better, but it gets the ide...
5 years 前 | 0
已回答
Plotting a meesh?
Without seeing your data, it's difficult to say exactly how you shoud go about representing your data. However, something like t...
Plotting a meesh?
Without seeing your data, it's difficult to say exactly how you shoud go about representing your data. However, something like t...
5 years 前 | 0
| 已接受
已回答
Is it possible to take a Screenshot of a website with Matlab?
Here's one way to do it using some java from withing Matlab. If you want to save the resulting image, see imwrite. % Open up a ...
Is it possible to take a Screenshot of a website with Matlab?
Here's one way to do it using some java from withing Matlab. If you want to save the resulting image, see imwrite. % Open up a ...
5 years 前 | 1
已回答
Need help with heuns method (rk2) for second order DE
1) You forgot to index the variable "v" in a couple places 2) Matlab indicies start at 1, not 0. Corrected code: % Runge...
Need help with heuns method (rk2) for second order DE
1) You forgot to index the variable "v" in a couple places 2) Matlab indicies start at 1, not 0. Corrected code: % Runge...
5 years 前 | 0
| 已接受
已回答
Change Logo on Matlab Figure (not GUI)
See a similar thread: https://www.mathworks.com/matlabcentral/answers/584-how-to-replace-matlab-icon-from-a-figure-window
Change Logo on Matlab Figure (not GUI)
See a similar thread: https://www.mathworks.com/matlabcentral/answers/584-how-to-replace-matlab-icon-from-a-figure-window
5 years 前 | 0
已回答
How to Set Sine Wave Frequency
Make sure your time step is small enough to capture oscillations on the order of GHz. You might be generating the "correct" sign...
How to Set Sine Wave Frequency
Make sure your time step is small enough to capture oscillations on the order of GHz. You might be generating the "correct" sign...
5 years 前 | 0
| 已接受
已回答
Remove a number and its duplicates, not just the repeated values i.e. the way the unique function operates
This should lead you along the right track: % Ex: % A = [2;2;4;3;3;5;6]; % remove(A, 2) Removes all 2's % remove(A, 2, 3) R...
Remove a number and its duplicates, not just the repeated values i.e. the way the unique function operates
This should lead you along the right track: % Ex: % A = [2;2;4;3;3;5;6]; % remove(A, 2) Removes all 2's % remove(A, 2, 3) R...
5 years 前 | 0
已回答
how to select two arrays from a group of four
To find the sum square of an array: sumSquared = sum(array.^2); If you have your arrays all together in a matrix: % If eac...
how to select two arrays from a group of four
To find the sum square of an array: sumSquared = sum(array.^2); If you have your arrays all together in a matrix: % If eac...
5 years 前 | 0
| 已接受
已解决
Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...
5 years 前
已解决
Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...
5 years 前
已解决
Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...
5 years 前
已解决
Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...
5 years 前
已解决
Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...
5 years 前
已解决
Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...
5 years 前
已解决
Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...
5 years 前
已回答
adding for loop to prevent changing char to same char
This is an interesting problem and a fun challenge. You don't need a for loop, rather, you can only allow different letters to b...
adding for loop to prevent changing char to same char
This is an interesting problem and a fun challenge. You don't need a for loop, rather, you can only allow different letters to b...
5 years 前 | 0
已回答
find(vector==value) not working
While it looks like the 17th value of your vector is 0.16, it's actually slightly off because of floating point precision. What ...
find(vector==value) not working
While it looks like the 17th value of your vector is 0.16, it's actually slightly off because of floating point precision. What ...
5 years 前 | 1
已回答
Creating Variables with GUI inputs
There are a number of ways to store data in a GUI so that it's accessible to different functions. Matlab's suggested way of pass...
Creating Variables with GUI inputs
There are a number of ways to store data in a GUI so that it's accessible to different functions. Matlab's suggested way of pass...
5 years 前 | 0
已回答
Data acquisition and Visualisation of LIDAR sensor in REAL TIME
Matlab isn't very good at graphics with high update rates, but it is doable. I'd suggest looking at the line and scatter objects...
Data acquisition and Visualisation of LIDAR sensor in REAL TIME
Matlab isn't very good at graphics with high update rates, but it is doable. I'd suggest looking at the line and scatter objects...
5 years 前 | 1
| 已接受
已回答
Custom class property and method attributes
So Matlab doesn't support this type of thing, which can't really be too surprising. The best way I've found to get around this i...
Custom class property and method attributes
So Matlab doesn't support this type of thing, which can't really be too surprising. The best way I've found to get around this i...
5 years 前 | 0
| 已接受
已回答
Plotting 3d orientation and position data (3d lines)
Check out quiver3 - it basically plots a vector field for the supplied points. For your case, you'll want X, Y, and Z to be the ...
Plotting 3d orientation and position data (3d lines)
Check out quiver3 - it basically plots a vector field for the supplied points. For your case, you'll want X, Y, and Z to be the ...
5 years 前 | 1
| 已接受
已回答
Two y-axis colors
Assuming you did something similar to the code below, you can access the axis properties directly and change the color to whatev...
Two y-axis colors
Assuming you did something similar to the code below, you can access the axis properties directly and change the color to whatev...
5 years 前 | 1
| 已接受
已回答
New to matlab, help?
Since this is an assignment, I'm not going to just give you the code, but there are a few pages you should look at to get you on...
New to matlab, help?
Since this is an assignment, I'm not going to just give you the code, but there are a few pages you should look at to get you on...
5 years 前 | 0
| 已接受
已回答
User surface on piano
Matlab has button click callbacks for graphical types. There's always multiple ways to approach a problem, but this is the route...
User surface on piano
Matlab has button click callbacks for graphical types. There's always multiple ways to approach a problem, but this is the route...
5 years 前 | 2
已回答
How to plot arrays of different sizes using interp1?
I would suggest using cross-correlation to find out where these two signals match up the best. The data you posted needs a littl...
How to plot arrays of different sizes using interp1?
I would suggest using cross-correlation to find out where these two signals match up the best. The data you posted needs a littl...
5 years 前 | 0
已回答
Get variables from my Matlab workspace
You should be using either inports or parameters to pass data from Matlab to you Simulink block. The "From Workspace" block work...
Get variables from my Matlab workspace
You should be using either inports or parameters to pass data from Matlab to you Simulink block. The "From Workspace" block work...
5 years 前 | 0
| 已接受
已回答
3D plot help
If you're expecting the independant variables X, Y, and Z to make some nice looking 3D surface, you can use Delaunay Triangulati...
3D plot help
If you're expecting the independant variables X, Y, and Z to make some nice looking 3D surface, you can use Delaunay Triangulati...
5 years 前 | 0
| 已接受
提问
Custom class property and method attributes
I'd like to be able to define my own attributes in classes, but I'm not finding any documentation as to how that might be done. ...
5 years 前 | 1 个回答 | 2