Domanda


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

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 8 anni fa | 0 risposte | 0

0

risposte

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 9 anni fa | 2 risposte | 0

2

risposte

Domanda


Add header to data file
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: ...

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 9 anni fa | 2 risposte | 0

2

risposte

Domanda


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

circa 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 9 anni fa | 2 risposte | 0

2

risposte

Domanda


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

circa 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 9 anni fa | 2 risposte | 0

2

risposte

Domanda


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

circa 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 9 anni fa | 1 risposta | 0

1

risposta

Carica altro