已回答
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...

12 years 前 | 0

| 已接受

已回答
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. ...

12 years 前 | 0

已回答
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...

12 years 前 | 0

已回答
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...

12 years 前 | 1

已回答
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...

12 years 前 | 0

已回答
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...

12 years 前 | 0

已回答
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 ...

12 years 前 | 0

已回答
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...

12 years 前 | 0

已回答
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(...

12 years 前 | 8

| 已接受

已回答
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...

12 years 前 | 0

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

12 years 前 | 0

已回答
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...

12 years 前 | 0

已回答
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...

12 years 前 | 0

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

12 years 前 | 0

| 已接受

已回答
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...

12 years 前 | 0

已回答
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...

12 years 前 | 0

| 已接受

已回答
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 = [...

13 years 前 | 0

已回答
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...

13 years 前 | 0

已回答
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...

13 years 前 | 1

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

13 years 前 | 0

已回答
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...

13 years 前 | 0

已回答
Log log plot
See: doc loglog

13 years 前 | 0

已回答
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...

13 years 前 | 0

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

13 years 前 | 4

| 已接受

已回答
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...

13 years 前 | 0

已回答
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...

13 years 前 | 1

| 已接受

已回答
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 ...

13 years 前 | 2

已回答
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, ...

13 years 前 | 0

已回答
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:...

13 years 前 | 0

已回答
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...

13 years 前 | 2

加载更多