Feeds
提问
How to align Xaxes for a 2x1 subplot with legends outside and one plot has 2 y-axes
Here is some sample code: figure; %set x limits xls = [1, 20]; %% SubPlot 1 %top plot subplot(2,1,1)...
6 years 前 | 0 个回答 | 0
0
个回答已回答
Port Excel VBA "ActiveCell.SpecialCells(xlLastCell).Select" (ctrl-end) and "Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select" (ctrl-shift-end) to MATLAB using ActiveX Connection
I was able to figure it out. Once I have an active sheet selected, I can then do %get cell A1 getA1 = h.Activesheet.get(...
Port Excel VBA "ActiveCell.SpecialCells(xlLastCell).Select" (ctrl-end) and "Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select" (ctrl-shift-end) to MATLAB using ActiveX Connection
I was able to figure it out. Once I have an active sheet selected, I can then do %get cell A1 getA1 = h.Activesheet.get(...
6 years 前 | 0
| 已接受
提问
Port Excel VBA "ActiveCell.SpecialCells(xlLastCell).Select" (ctrl-end) and "Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select" (ctrl-shift-end) to MATLAB using ActiveX Connection
I'm try to port over two VBA commands. The following example assumes that you fill in file_directory, file_name, and sheet_name ...
6 years 前 | 1 个回答 | 0
1
个回答提问
How to cumulatively add consecutive ones between zeros in a logical vector
I have a vector that looks like x = [0 0 1 1 0 0 1 1 1 0 0 1] and am trying to obtain y = [0 0 1 2 0 0 1 2 3 0 0 ...
7 years 前 | 1 个回答 | 0
1
个回答提问
Extract rectangular data from a non-rectangular file with header and convert to a structure of column vectors where field names are the second row of the rectangular data
I am trying to read a text file that has a header of varying length due to some options that can be turned on. Below the header ...
7 years 前 | 1 个回答 | 0
1
个回答提问
How to remove sets of values from a column vector using two column vectors with the starting and stopping indeces for removal by row
Let's say that I have a column vector, x x = (1:10)' and two column vectors with the starting and stopping indeces, x_st...
8 years 前 | 1 个回答 | 0
1
个回答提问
How to Apply Logical Indexing and Then a Subscript to a Vector in One Line of Code
Let's say I have a vector a=(linspace(1,10,10))'; And a set of logicals to shrink this vector b=logical(zeros(10,1)...
9 years 前 | 1 个回答 | 0
1
个回答提问
How to Add a Marker (say an asterisk) to a Hist3 Plot
I am trying to add asterisks to my histograms to mark various important points. Currently, I use the following code for my hist...
9 years 前 | 0 个回答 | 1
0
个回答提问
How to Obtain the Indeces of the Minimum Value of Each Row in a Matrix and then Apply These Indeces to a New Matrix of the Same Size
Say I have the following matrices: x = [3 4; 1 3; 2 5; 7 4]; y = [1 2; 3 4; 5 6; 7 8]; If I want the minimum values b...
9 years 前 | 2 个回答 | 0
2
个回答已回答
How to make a histogram using accumarray and surf with decimal values on the axes?
Using hist3 appears to be the way to go for my problem. X=[vec1 vec2]; hist3(X,{2:0.1:4 -0.135:0.01:0.145}) set(gcf,'...
How to make a histogram using accumarray and surf with decimal values on the axes?
Using hist3 appears to be the way to go for my problem. X=[vec1 vec2]; hist3(X,{2:0.1:4 -0.135:0.01:0.145}) set(gcf,'...
9 years 前 | 0
| 已接受
提问
How to make a histogram using accumarray and surf with decimal values on the axes?
I have some code: #My data vec1=...; vec2=...; #Interpolation points intptsvec1=linspace(2,4,21); intptsvec2=l...
9 years 前 | 2 个回答 | 0