Risposto
error in the output of "ss2tf"
I don't believe there is a problem. The ss2tf function only states that the numerator coefficients are returned in an array with...

quasi 12 anni fa | 0

| accettato

Risposto
Using assignin command in guide
1. You cannot index into variables while using assignin. Therefore trying to assign the value 'red' to C(a,:) will not work. ...

quasi 12 anni fa | 0

Risposto
How to work with Simulink project and libraries?
You can handle the common libraries within SVN using the 'externals' definition for both projects, this way you could ensure the...

quasi 12 anni fa | 0

Risposto
Compute cumulative sum of a column vector without for loop
A=(1:10)'; % column vector spacing = 4; % scalar solution = arrayfun(@(n) sum(A(n):A(n+spacing)), 1:length(A)-spaci...

circa 12 anni fa | 1

Risposto
Sorting
line(1,:)= [1 2 3 4 5 6 7 8 9 10]; line(2,:)= [1.3 -2.3 4.245 12.3 -4.5 9.43 8.34 -5.3 3.54 6.4]; [line(2,:), line(1...

circa 12 anni fa | 0

Risposto
Why can't I read the videos with MATLAB on linux?
The file formats you mentioned are purely container formats. It is the codec used to encode the underlying video streams which w...

circa 12 anni fa | 0

Risposto
Appending two or more .mat files
You can also load data into a structure, and manipulate it from there. For example: FILE_A = load('ECU_1.mat'); FILE_B ...

circa 12 anni fa | 0

Risposto
How to access displayed axis limits when scaling is logarithmic and data partly negative?
After you set 'axis tight' call the following commmand: set(gca, 'YLimMode', 'auto') Then 'ylim' should return: [10...

circa 12 anni fa | 0

Risposto
how to assign names to each bar of a bar chart
You can simply add the names as the y-tick labels. somedata=randn(1,3); somenames={'mike'; 'steve'; 'alex' }; barh(...

circa 12 anni fa | 8

| accettato

Risposto
combine date & time
Be careful when working with arrays in this manner. The terms day(n) and time(n) probably don't contain what you are expecting t...

circa 12 anni fa | 0

Risposto
how to create plot of inverse data?
Is it the y-axis you want to reverse? If so: axis ij

circa 12 anni fa | 0

Risposto
Write a function, using arrays-vectors,' input'& 'fprintf','if' statement', 'end', 'fgetl' etc with good programming practices...like putting comments %
*HINT:* Don't post your assignments/homework word for word online, as if even someone does provide the answers a simple online s...

circa 12 anni fa | 0

Risposto
converting double to string
To convert string to double: x = 'AVECAESAR'; y = double(x); To convert double to string: x = [65 86 69 67 65 69...

circa 12 anni fa | 0

Risposto
UTC time
Grab the following file from the File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/7244 Then call: x...

circa 12 anni fa | 0

| accettato

Risposto
Help!! (Function definitions are not permitted in this context.)
What you are doing is mixing a script and a function within a single m-file. Remove the first four lines: numer_poly = [600...

circa 12 anni fa | 0

Risposto
Opening and writing into doc file
You will need to create a MATLAB COM object to be able to achieve this. See: <http://www.mathworks.co.uk/help/techdoc/mat...

circa 12 anni fa | 0

| accettato

Risposto
How to copy copy column with loop?
Using 'repmat' is also a possibility: A = [ 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8] out = [...

circa 12 anni fa | 0

Risposto
Why "Model arguments can not be used in non-tunable expressions"? in Referenced Simulink Models?
It would appear as if you are indexing the parameter 'mfgz' based on model parameters. Indexing of this form is not allowed if y...

circa 12 anni fa | 0

Risposto
rose diagram
The workaround I use to get the correct limits set on a polar plot is to simply draw a circle at your desired maximum, and set t...

circa 12 anni fa | 1

Risposto
structuring element
See: doc zeros doc ones You can then add/subtract or reallocate these arrays to get what you need.

circa 12 anni fa | 0

Risposto
How to display risetime of output response of my system in simulink?
Not entirely sure why you'd want to do this. But it is definitely possible - you should be able to do it with a combination of s...

oltre 12 anni fa | 0

Risposto
Log log plot
See: doc loglog

oltre 12 anni fa | 0

Risposto
How to draw a bar graph from cell array with different size length?
If you are going to pad out your arrays with zeros you don't even need to define it as a cell array, just use a matrix. Try t...

oltre 12 anni fa | 0

Risposto
How to check existence of worksheet in excel file
[A,B] = xlsfinfo('foofoo.xlsx'); sheetValid = any(strcmp(B, 'foo2'));

oltre 12 anni fa | 4

| accettato

Risposto
problem of memory
Also ensure that if you are generating Matlab Figures (as an intermediate step) with the 'Visible' property set to false that yo...

oltre 12 anni fa | 0

Risposto
how to load .mat in GUI every time the GUI runs and the GUI connect to simulink model
You call add a call to load('alphabet.mat') within the Simulink model's InitFcn callback if the parameters are only needed by th...

oltre 12 anni fa | 1

| accettato

Risposto
Plot Multiple Colours automatically in a for loop
I would suggest taking a look at the 'hold all' command. Just replace the line: hold on with: hold all That way ...

oltre 12 anni fa | 2

Risposto
how can I use a name of an external variable in a function?
Do you mean something like this: function [] = savefigure( data, filename ) imagesc(data) saveas(1, filename, ...

oltre 12 anni fa | 0

Risposto
source code
Depends on the function. Just type 'edit' before the function name to see if the source is visible to the end user. For example:...

oltre 12 anni fa | 0

Risposto
Start Stop timer using counter in simulink
Just put an integrator within your enabled sub-system. Feed the integrator with a constant. Your output will then only ramp up w...

oltre 12 anni fa | 2

Carica altro