photo

alice


自 2017 起处于活动状态

Followers: 0   Following: 0

统计学

All
  • Knowledgeable Level 3
  • Solver
  • Thankful Level 1
  • Knowledgeable Level 2
  • First Answer

查看徽章

Feeds

排序方式:

已回答
Take all possible combinations for more than 15 elements
You can look at the nchoosek function: doc nchoosek Then you should be able to write something like this: A = rand...

7 years 前 | 0

已回答
Finding sum of large array based on row values
Calling your matrix |data|: [dateAndHour,~,index] = unique(data(:,1:4),'rows'); % find the hours present in the...

7 years 前 | 0

| 已接受

已回答
Performing matrix subtraction for huge data
You can avoid to loop using the minus operator comportment: A = [2,5,7]'; B = [2,7,9]'; result = A'-B;

7 years 前 | 0

已回答
want to plot three curves with markers on it, but some markers skipped :like p1,p2,p3. How to make a lended with only three entries(=line+marker on it for each)?
Starting in R2016B, the |MarkerIndices| line property is doing what you want : plot(z1,M1,'-s black','MarkerIndices',1:7:le...

7 years 前 | 0

| 已接受

已回答
Sorting a cell array (text) in the order of a colperm solution
namessort=nNames(sortB); Does this gives what you want? If not, sorry but I haven't understood what you want to do. To d...

7 years 前 | 0

| 已接受

已回答
how can i vectorize this for loop?
You could do: n1 = numel(1:0.5:10); n2 = numel(1:0.5:5); numpl2 = repelem(1:0.5:10,n2)'; denpl2 = repmat([ones(n...

7 years 前 | 0

| 已接受

已回答
Plotting selected data from time series
If you want to plot the time versus the min temperature and the time versus the max temperature and if your min temperature is o...

7 years 前 | 2

| 已接受

提问


Get the line number of the last warning found ?
Is it possible to get the line number of the last warning found in order to store it and use it afterwards? As long as the |...

7 years 前 | 1 个回答 | 0

1

个回答

已回答
dataset expansion keeping same values
To transform |myArray| by repeating its elements |nRepeat| times: myArray = 100*rand(1,144); % fake data nRepeat = 10; ...

7 years 前 | 0

| 已接受

已回答
plot a graph with two axis
You can do like this, using |yyaxis|: % fake data generation: myMatrix = [(1.2-(-0.4))*rand(20,2)+(-0.4) , sort((90-80)*...

7 years 前 | 0

| 已接受

已回答
How to compare a series of 50 values to a single value for each sample in a plot?
I don't know if you have your data in structure arrays, vectors or others, but is this example similar to what you want to achie...

7 years 前 | 0

已回答
When printing mfile, how to change format (font, header)?
In the Editor menu, you can change the headers properties and the font in Page setup: <</matlabcentral/answers/uploaded_files...

7 years 前 | 2

| 已接受

已回答
How can I store the values in a matrix while using for loop?
You have to give the position where you want to write, like this: k = 1.5:0.1:3; ws = zeros(1,length(k)); dof = zeros...

7 years 前 | 0

已回答
I have this error msg (Matrix index is out of range for deletion. Error in tray1 (line 31) x1(:,rows) = []; ) what is the problem ????
You are deleting columns of your matrix |x1| in the loop, so its size has changed (moreover, you skip some columns). To avoi...

7 years 前 | 0

| 已接受

已回答
How to get and set ylabel position in normalized units?
You can set the units to normalized first: ... set(ylabh,'Units','normalized'); set(ylabh,'position',get(yl...

7 years 前 | 0

已回答
how to set a limit in each color in a color bar?
You only use three colors, so you can change |caxis| value in order to have the values you want at the limit because the colors,...

7 years 前 | 0

已回答
setting transparancy of legend?
In _undocumented Matlab_, you will find how to do it here: <http://undocumentedmatlab.com/blog/transparent-legend>.

7 years 前 | 4

已回答
conditional statement in one line for table columns
Have a look at the documentation, for example these: <http://www.mathworks.com/help/matlab/matlab_prog/find-array-elements-that-...

7 years 前 | 1

| 已接受

已回答
How to get value of a particular grid from 80*80 matrix?
Look at Matlab documentation: <http://www.mathworks.com/help/matlab/math/matrix-indexing.html matrix indexing> . What you want t...

7 years 前 | 0

已回答
Pseudo Random Integer with frequency constraints
One way to do it (it is not really concise and beautiful but works pretty fast): I put all the '1' in the matrix at random posit...

7 years 前 | 0

| 已接受

已回答
How can I create a list of ranges and tell the program to verify in which range is my number and pick the inferior limit?
Hi, * In Matlab, |inf| is the keyword for the infinity so you should avoid naming your inferior limits inf. Maybe you can nam...

7 years 前 | 0

已回答
How to get correct values of a(n) from this equation. Attached is my code but it gives wrong values. where n=1...5,
Here is what I have understood of your problem: When you calculate |a(n)|, you have a problem in the sum because when |k=n| t...

7 years 前 | 1

| 已接受

已回答
Index exceeds matrix dimensions error
You made a typo, you forgot the *: result = (Isc + Ki *(Top - Trf)) - Iph;

7 years 前 | 0

已回答
Create a Graph from a matrix
To get a directed graph, you should use *digraph* function. In order to do so, you have to build a standard square *adjacency m...

7 years 前 | 1

| 已接受

已回答
how to record the changing of columns
Hello, I am not sure about what you want to achieve exactly, but I hope this helps anyway: * working with a location array...

7 years 前 | 0