Risposto
I'm looking to generate a bode plot of the following function in matlab: Gc(s)G(s) = K*e^-Ts / s when T = 0.2
You could try: s = tf('s') T = 0.2; K = <some value> GcG = K * e ^ (-T * s) bode(GcG)

quasi 3 anni fa | 0

Risposto
How do i plot N amount of rows into a point plot?
Whats the content of your variable "grades"? You can plot multiple lines one after the other with the hold command. (A,B,C,D,E,...

quasi 3 anni fa | 0

| accettato

Risposto
how can i use my function directly on a array without having x and y?
The function you defined has 3 arguments. x,y and a. function img(x,y,a) imagesc(x,y,a); set(gca,'YDir','normal'); ...

quasi 3 anni fa | 0

Risposto
Running my script multiple times and storing variables in a matrix
I am not sure i understand what you are trying to achieve. What percentage are we talking about? It sounds like you want to call...

quasi 3 anni fa | 0

| accettato

Risposto
How do you extract diagonal elements of a cell array?
Assuming your matrix "data" is equal in x and y dimension: [y,x] = size(data) selected_values = data([1:y+1:x*y]) Alternative...

quasi 3 anni fa | 0

| accettato

Risposto
I need to combine data provided as a six different cell array in one cell
You could try datestr(datenum(combined_in_one_file(:,1:6)))

quasi 3 anni fa | 0

Risposto
How to store results in a structure, by using parfor loop ?
Matlab does not support dynamically changing array sizes in parfor loops. You need to preallocate your struct. Try this: N = 2...

quasi 3 anni fa | 0

| accettato

Risposto
High pass filter design with magnitude and frequency plot
Assuming you own Control System Toolbox or System Identification Toolbox, you could use the "bode" command. https://de.mathwor...

quasi 3 anni fa | 0

| accettato

Risposto
how to make the graph start at axis-y = 0 ?
Assuming the data you are plotting are vectors called x_data, y_data You could offset your data to achieve your goal. x_data...

quasi 3 anni fa | 0

Risposto
Excluding 0.5 from rounding
if mod(x,1) ~= 0.5 x = round(x) end

quasi 3 anni fa | 1

Domanda


How to retrieve the Inport names/labels of a Stateflow chart?
Hello, I am looking for a way to programatically retrieve the portnames of a stateflow chart. Curiously get_param(gcb,'OutputSi...

quasi 3 anni fa | 2 risposte | 0

2

risposte