Community Profile

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...

6年以上 前 | 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...

6年以上 前 | 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;

6年以上 前 | 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...

6年以上 前 | 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...

6年以上 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 0

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

7年弱 前 | 3

| 採用済み

回答済み
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年弱 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 1

| 採用済み

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

7年弱 前 | 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年弱 前 | 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年弱 前 | 0