Feeds
提问
Find all largest empty circles in a list of points
Hi everyone, I want to find all of the largest empty circles, which pass through any 3 points in a large list of points (~50)...
11 years 前 | 3 个回答 | 0
3
个回答已解决
Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...
11 years 前
提问
Constructing a Doubly-Linked Edge List
Hi everyone, I am working on constructing a linked list, that connects edges in two directions and traverses through all poin...
11 years 前 | 0 个回答 | 1
0
个回答已解决
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. Example...
11 years 前
已回答
Sorting a vector with another vector of multiple maximums
With the help of kjetil87, I was able to write the appropriate code for this situation. It is shown here: [~,idx] = sort(P(:...
Sorting a vector with another vector of multiple maximums
With the help of kjetil87, I was able to write the appropriate code for this situation. It is shown here: [~,idx] = sort(P(:...
11 years 前 | 0
提问
Sorting a vector with another vector of multiple maximums
Hi, I have a function that I want to compute a queue "Qevents", which gets information from a set of points "P" (columns x an...
11 years 前 | 2 个回答 | 0
2
个回答已解决
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
11 years 前
已解决
Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...
11 years 前
已解决
Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...
11 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...
11 years 前
已解决
Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...
11 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...
11 years 前
已解决
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
11 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 ...
11 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:...
11 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...
11 years 前
已回答
How to make the sovler faster?
Generally if your variables are dependent on multiple other variables, it takes a longer time to reach the solution, as MATLAB m...
How to make the sovler faster?
Generally if your variables are dependent on multiple other variables, it takes a longer time to reach the solution, as MATLAB m...
11 years 前 | 0
提问
Traversing Through a Vector of Different-sized Cells
Hi, Let me first explain the code I want to execute. I have a matrix "V" of size (m x 2), where the first column is x values ...
11 years 前 | 1 个回答 | 0
1
个回答已回答
Solve a system of symbolic variables
OK, so working through this I came up with another code, and I provided some comments to explain what I did. The code changed qu...
Solve a system of symbolic variables
OK, so working through this I came up with another code, and I provided some comments to explain what I did. The code changed qu...
12 years 前 | 0
提问
Solve a system of symbolic variables
Hi, I have been trying hard at this for a while now. Does anybody know if there is some way to solve symbolic variables in a ...
12 years 前 | 3 个回答 | 0
3
个回答已回答
Importing .xyz Data Files
I'm getting the data to output in the proper data type now, with the proper number of rows, but for some reason the command read...
Importing .xyz Data Files
I'm getting the data to output in the proper data type now, with the proper number of rows, but for some reason the command read...
13 years 前 | 0
提问
Importing .xyz Data Files
Hi, I am having trouble with importing an .xyz data file I got from a 3D laser scanner. MATLAB didn't support the ".xyz" file e...
13 years 前 | 4 个回答 | 0
4
个回答提问
Optimization of a Fitted Circle
Hi, I'll try to explain this the best I can.. to start off, I am inexperienced with optimization techniques. I was asked to m...
13 years 前 | 1 个回答 | 0
1
个回答已回答
Least Squares Fitting Method with a Circle
Is there a problem with my code? Like maybe I shouldn't use a polar plot in this case, or something that could be done better.
Least Squares Fitting Method with a Circle
Is there a problem with my code? Like maybe I shouldn't use a polar plot in this case, or something that could be done better.
13 years 前 | 0
已回答
how to read data into matlab
Provided your file is in the MATLAB path, you can use importdata data = importdata('file_name.txt') Once you read in all...
how to read data into matlab
Provided your file is in the MATLAB path, you can use importdata data = importdata('file_name.txt') Once you read in all...
13 years 前 | 0
提问
Least Squares Fitting Method with a Circle
Hi everyone, Forgive me, I am no expert at MATLAB. I would appreciate it greatly if someone could explain to me the method of...
13 years 前 | 3 个回答 | 0
3
个回答已回答
How can I plot a string function
You can choose whatever values of x you want. Since you are dealing with a trigonometric function in your case, you may want to ...
How can I plot a string function
You can choose whatever values of x you want. Since you are dealing with a trigonometric function in your case, you may want to ...
13 years 前 | 0