Feeds
提问
How to sort one field of a structure based on the values of another field?
Let's say I have a structure 'struct' with two fields 'field1' and 'field2'. The length of the fields is unknown, but could be m...
8 years 前 | 1 个回答 | 0
1
个回答提问
How to read data from text file upto some point defined by "1"?
I'm trying to read data from a number of text files (using a loop) using fscanf upto some point in the file where "1" occurs. I ...
9 years 前 | 1 个回答 | 0
1
个回答提问
How to retain only the positive root of a quadratic equation?
I was wondering if there is any Matlab function that would allow me to retain only the positive root of a quadratic equation. I ...
10 years 前 | 2 个回答 | 0
2
个回答提问
Find elements in a matrix
I have a very large matrix A with 4 columns and hundreds of thousands of rows - the first 3 columns contain x, y and z coordinat...
10 years 前 | 1 个回答 | 0
1
个回答提问
How to generate a contour map?
Is there any way to generate a contour map from random 2-D scattered data points without a grid? I just have the X and Y coordin...
10 years 前 | 1 个回答 | 0
1
个回答提问
How to read in names of function input arguments as strings?
Is there any way I can read in the names of input arguments of function m-files as strings? I have a function m-file: function ...
10 years 前 | 1 个回答 | 0
1
个回答提问
How to export a Matlab cell array to an Excel spreadsheet?
I have a cell array X={'A','B','C','D',A,B,C,D} where A,B,C and D are column vectors of equal size. I intended to create a spre...
11 years 前 | 3 个回答 | 1
3
个回答提问
How to display matlab cell array contents with colors?
Say, I have a cell array A containing strings describing some property spatially. Is there any way I can plot these property val...
11 years 前 | 1 个回答 | 0
1
个回答提问
Solving equation with symbolic vector variable
I want to solve an equation of the form: V/(A-V)=B where A and B are known vectors and V is the symbolic vector variable I want...
11 years 前 | 1 个回答 | 0
1
个回答提问
How to group scatter plot data?
I have three vectors x,y and z of the same length. How can I generate a scatter plot of x and y which is grouped according to th...
11 years 前 | 0 个回答 | 0
0
个回答提问
How do I fit an exponential curve to my data?
Say, I have the following data: x=[1,2,4,6,8],y=[100,140,160,170,175]. How do I fit an exponential curve of the form y=a-b*exp(-...
11 years 前 | 3 个回答 | 1
3
个回答提问
How to plot a grid connecting adjacent points in a 2-D Cartesian coordinate system?
Say, I have a grid [X Y]=meshgrid(0:10:100,0:10:100). Is there any Matlab function to plot the 2-D grid (100 small boxes)? Also ...
11 years 前 | 0 个回答 | 0
0
个回答提问
How do I create a vector of the average of consecutive elements of another vector (without using a loop)?
Say, I have a vector A=[2 4 6 8 10]. Is there any way I can create a vector of the average of consecutive elements of A, i.e. B=...
11 years 前 | 3 个回答 | 0
3
个回答提问
How do I create (and retain) the elements of vectors using for loop?
I want a function file to output two vectors 'pi_estimate' and 'error' of length 'n' each. I'm initializing the vectors with zer...
11 years 前 | 1 个回答 | 0