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

2 years ago | 0

| accepted

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'); ...

2 years ago | 0

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

2 years ago | 0

| accepted

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

2 years ago | 0

| accepted

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

2 years ago | 0

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

2 years ago | 0

| accepted

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

2 years ago | 0

| accepted

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

2 years ago | 0

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

2 years ago | 1

Question

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

2 years ago | 2 answers | 0