photo

alice


Attivo dal 2017

Followers: 0   Following: 0

Statistica

All
MATLAB Answers

1 Domanda
24 Risposte

Cody

0 Problemi
76 Soluzioni

RANK
995
of 300.369

REPUTAZIONE
78

CONTRIBUTI
1 Domanda
24 Risposte

ACCETTAZIONE DELLE RISPOSTE
100.0%

VOTI RICEVUTI
11

RANK
 of 20.936

REPUTAZIONE
N/A

VALUTAZIONE MEDIA
0.00

CONTRIBUTI
0 File

DOWNLOAD
0

ALL TIME DOWNLOAD
0

RANK
8.686
of 168.436

CONTRIBUTI
0 Problemi
76 Soluzioni

PUNTEGGIO
760

NUMERO DI BADGE
1

CONTRIBUTI
0 Post

CONTRIBUTI
0 Pubblico Canali

VALUTAZIONE MEDIA

CONTRIBUTI
0 Punti principali

NUMERO MEDIO DI LIKE

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

Visualizza badge

Feeds

Visto da

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

circa 8 anni fa | 0

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

circa 8 anni fa | 0

| accettato

Risposto
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;

circa 8 anni fa | 0

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

circa 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 2

| accettato

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

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

oltre 8 anni fa | 0

| accettato

Risposto
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)*...

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 2

| accettato

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 4

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

oltre 8 anni fa | 1

| accettato

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 0

| accettato

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 1

| accettato

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

oltre 8 anni fa | 0

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

oltre 8 anni fa | 1

| accettato

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

oltre 8 anni fa | 0