Frage

place matrix in array part 2
This post is building from the post found <http://www.mathworks.com/matlabcentral/answers/307465-place-array-in-a-matrix here.> ...

mehr als 7 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

place array in a matrix
Hello, I have these points: x1 = (1,0), x2 = (0.5,1), x3 = (0.5,1.5), x4 = (0, -1), x5 = (-1,1), x6 = (0.5, -1) How do I g...

mehr als 7 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

plot graph from array
Hello, I have this array: Class1 = [1 0; 0.5 1; 0.5 1.5]; How do I go about plotting the 3 points from Class1? If I use...

mehr als 7 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Restructure matrix to get back original matrix
Hello, In the code below, I generate a random 8 x 5 matrix then create a new matrix 'temp' that is A restructured to `temp = res...

etwa 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Check error rate from Principal Component Analysis
Hello, For the Matlab code given to find the <http://www.mathworks.com/matlabcentral/fileexchange/45750-face-recognition-using-...

etwa 8 Jahre vor | 0 Antworten | 0

### 0

Antworten

Frage

Close prompt dialog box after hitting OK
Hello, In the function below, I wanted to be able to close the prompt window after hitting the OK button. However, with th...

etwa 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Wait for user input after pressing button
Hello, I created a "OK" button using the guide template in Matlab. Here is the code: function varargout = prompt11(vara...

etwa 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Set up graph before going into for loop, then refresh data in plot after each iteration
In this program, I wanted to know if it is possible to update just the data points during the for loop, but keep the graph setup...

etwa 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Get value from function to be used in program
Hello, I wrote a simple function program called ADD: function A = ADD(N,M); A = N + M return and this is th...

etwa 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Problem getting array after multiplication/division
Hello, in the code below, I wanted to get an array for "Hp" for all the values of "f". I am only getting 1 value for "Hp". Ca...

mehr als 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Write matrix to text file
Hello, I am trying to write a matrix 'A' to a text file. I would like the data written to file like this: A = ...

mehr als 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Extrapolate data after shifting plot
Hello, In the code provided, I have shifted plot 1 in the positive x-direction, but in doing so, I have no data now from x=1 ...

mehr als 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Shift data in the negative x direction then multiply shifted data with other plot
Hello, I have two plots from a simulated loop. I wanted to shift the data in plot 2 in the negative x direction, then multip...

mehr als 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Help to make code into a for loop
Hello, I would like to know how to go about making the following code into a for loop: A1 = [0 1 0; 0 0 0; 0 0 1] %fp...

mehr als 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Change just the ylims of the Magnitude plot from the bode TF
Hello, I am trying to change the ylims of just the magnitude of the bode TF plot but I get the error "Undefined function 'get...

mehr als 8 Jahre vor | 2 Antworten | 0

### 2

Antworten

Frage

Hello, In my code below, I wanted to know how to go about adding a header to the file. The header will be the column names: ...

mehr als 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Save Cell data to file
Hello, In the code below, how do I go about saving the cell data to a csv file with the specified headers? Here is my code...

mehr als 8 Jahre vor | 2 Antworten | 0

### 2

Antworten

Frage

Save different size cells to text file
This post is building from previous posts and I have been modifying the code as I go along. I am still having a problem saving ...

mehr als 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Problem saving cell to txt file
Hello, I am trying to save different size arrays to a text file. Can you help me save my arrays to the text file? Here is my ...

mehr als 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Save data to file with different array size
Hello, I wanted to save a data file that contains different array sizes. Can you assist me with this task? This is the code th...

mehr als 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

One common Y-axis label for two or more plots
Hello, How can I get just one Y-Axis Label to span two or more plots? That is, center the Y-axis label between the plots in ...

mehr als 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Add gaussian distributed noise with mean and variance to matrix
Hello, I've seen that to add gaussian distributed noise to a matrix A with mean 0 and var = 5, this is the code A_wnoise...

mehr als 8 Jahre vor | 2 Antworten | 0

### 2

Antworten

Frage

Save data to file
Hello, In my code below, I am having a problem saving the matrix A properly to a file. The saved data is getting mixed up an...

mehr als 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

change appearence of 3rd plot in plotyy and plot legend
Hello, I am trying to have 3 different plots show in the same graph. I have one plot associated with the left y-axis and 2 pl...

mehr als 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Change color style of plot
Hello, I was attempting to change the color of one of the plots in my graph to a specific color but I could not get the progr...

mehr als 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Can you tell me why my x-axis grid in plot (b) shows incorrectly?
Hello, In my MWE below, I am plotting 4 graphs. I am trying to get graph (c) and (d) to show up with the x-axis as floating ...

mehr als 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Plot two graphs in the same figure, that have different number of points from text file
Hello, I am trying to plot 2 graphs in the same figure, but I am having a problem as the two datasets contain different numbe...

mehr als 8 Jahre vor | 2 Antworten | 0

### 2

Antworten

Frage

Change x-axis grid lines
Hello, In my MWE below, I wanted to know how to add minor grid lines of 0.001 to the x-axis? Here is my code: % Selec...

mehr als 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

color plot above and below y-axis points
From my simulation file below, I wanted to color the plot in red for sections of the graph that goes above 100, and below -100. ...

mehr als 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Run for loop and print data after each iteration
Hello, in my attached Matlab Code, I would like to run the for loop to carry out the calculation on each of the DataX and then p...

mehr als 8 Jahre vor | 1 Antwort | 0

Antwort