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년 초과 전 | 답변 수: 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 ...
거의 10년 전 | 답변 수: 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년 초과 전 | 답변 수: 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년 초과 전 | 답변 수: 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...
거의 11년 전 | 답변 수: 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 ...
대략 11년 전 | 답변 수: 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년 전 | 답변 수: 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년 전 | 답변 수: 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년 전 | 답변 수: 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년 전 | 답변 수: 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년 전 | 답변 수: 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년 전 | 답변 수: 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년 전 | 답변 수: 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년 전 | 답변 수: 1 | 0