Question

How to plot step response of second order system?

omgNot = 1; zetaNot = 0.6; H = tf(omgNot^2,[1, 2*zetaNot*omgNot, omgNot^2]); stepplot(H) I am using the code above to plot t...

1 year ago | 1 answer | 0

Question

How to export cell array of strings and doubles in Excel?

I am trying to export a cell array which contains both double and string elements with the xlswrite() function. <</matlabcent...

2 years ago | 0 answers | 0

Question

How to convert a 1XM array into NXM array?

I have a 1x12 array, where each element is a vector of doubles (the vectors have different lengths). How can I convert to a NX12...

2 years ago | 1 answer | 0

Question

How to set colormap for a 3D surface that is projected onto the XY Plane?

Recently, I asked a question on improving the performance of plotting functions like barh. The solution is very time efficient (...

2 years ago | 1 answer | 0

Submitted

CSV with Headers Import/Export

Performs conversions csv to mat, and mat to csv. Works for csv files with and without header information.

2 years ago | 2 downloads |

Question

Why do plotting functions like bar or barh take a long time to execute?

I have a 1x600 vector of doubles, where each element represent the duration of a certain engineering process. I want to get a ho...

2 years ago | 1 answer | 1

Question

How to multiply a 3x3 kernel to a gray scale image (uint8) ?

Gx = [-1 0 1;-2 0 2;-1 0 1]; Gy = [-1 -2 -1; 0 0 0; 1 2 1]; img = imread('Bikesgray.jpg'); [rws, cls] = size(img); mag ...

2 years ago | 1 answer | 0

Question

How to update titles and text annotations of subplots located on the same uitab?

% TAB 1 S.tabH(1) = uitab(S.histoTab, 'Title', 'Error X'); S.P1_histo{1} = subplot(2,2,[1 3], 'Parent', S.tabH(1)); ...

2 years ago | 0 answers | 0

Question

How to compare exponential numbers with 7-9 digits of accuracy

I am creating a GUI that allows the user to delete data points from a graph by clicking on them. The method has been working for...

2 years ago | 1 answer | 0

Question

Should I declare GUI components in a struct or as separate variables?

function script6() fig = figure('units', 'pix', 'position', [350, 200, 400, 170], 'menubar' , 'none'); popmenuh = uicontro...

2 years ago | 1 answer | 0

Question

How to use keypressfcn to allow the user only to copy from an edittext?

function [] = GUI_15() S.fh = figure('units','pixels',... 'position',[300 300 400 120],... 'men...

2 years ago | 0 answers | 0

Question

How to use get and set to remove the last value of a string in a text uicontrol?

function script4() fig = figure('units', 'pix', 'position', [300, 300, 300, 300], 'menubar','none','resize', 'off'); pushbutt...

2 years ago | 1 answer | 0

Question

How to use set to change a property of a uicontrol?

function [] = script2() fig = figure('units','pixels','position',[300 300 500 400], 'menubar','none','name','GUI_3','numbertit...

2 years ago | 1 answer | 0

Question

How to access a third generation node data in a .xml file?

I would appreciate if you gave me an explanation or pseudo code for accomplishing this, because the code available in other disc...

2 years ago | 0 answers | 0

Question

I want to store each column in struct field, but don't know the data type. How can I accomplish this for any number of columns, without having to use '%s%d%d'?

filename= 'dataFil.txt'; fid = fopen( filename, 'r' ) ; data = textscan(fid, '%s%d%d', 'delimiter', ',') fclose(fid)...

2 years ago | 1 answer | 0

Submitted

Piano (Whistle, Flo Rida)

Plays a piano version of the song Whistle by Flo Rida

3 years ago | 0 downloads |

Submitted

Transformation of a Set of Vectors (Limited Domain)

Transformation of a Set of Vectors

3 years ago | 0 downloads |

Submitted

Taylor series approximation for sin(x)

Approximates the value of function sin(x) by using Taylor Series expansion

3 years ago | 3 downloads |

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

3 years ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

3 years ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

3 years ago

Question

How to edit properties of a plot and highlight certain points in the graph at the same time?

This is the code I wrote for graphing the Phase Plot of the differential equation dy/dt = y(y-2)(y-2)(y-4)(y-6), but I am get...

3 years ago | 1 answer | 0