Answered
how to represent state space block diagram using state space block in simulink ?
In your incomplete example, your system has two inputs ( B should be nx2, where n is the number of states).

13 years ago | 0

Answered
Question regarding a find function(search for data)
out=[data(any(data==17,2),:);data(any(data==10,2),:)] %or out=data(any(ismember(data,lookfor),2),:)

13 years ago | 0

| accepted

Answered
question about matrix interleavers??
you can use reshape function. give an example of matrices you want to interleave

13 years ago | 0

| accepted

Answered
Which is best :define variables as global or pass them as arguments?
Passing them as argument is better

13 years ago | 0

| accepted

Answered
Can you help with logic behind this problem? Iterations
idx1=find(cellfun(@(x) isequal(x,'N'),cell(:,2))); idx2=[idx1(2:end)-1; size(cell,1)]; for k=1:numel(idx1) h{k}=cellfun...

13 years ago | 0

Answered
Matlab simulink toworkspace block plot problem?
Use a <http://www.mathworks.com/help/simulink/slref/clock.html Clock> block connected to *to workspace* block to get the simulat...

13 years ago | 0

Answered
How to solve the error?
How did you run this code? This file is a function, it should be called: in the windows Matlab command, type shape = Cla...

13 years ago | 0

| accepted

Answered
Negative Values in Step Response
This is normal, when your transfer function contains positives zeros example H(p)=(-p+2)/(p^2+2p+1) step([-1 2],[1 2 1]...

13 years ago | 0

| accepted

Answered
Loading a excel file in which I want to take only A, C not B and D, how can I improve?
headers_nums=headers_nums(:,[1 3])

13 years ago | 0

| accepted

Answered
how can i set all of them concurrently in gui
a1=double2str(set(handles.edit4,'string',svr)); This does not make any sense. What do you want to achieve? set(handles...

13 years ago | 0

| accepted

Answered
Discrete transfer fcn 1/z-1 (Z-transform) How it Works?
If the input of your system is u[n] and its output is Y[n] then % H(z)=Y(z)/U(z) % 1/(z-1)=Y(z)/U(z) % which gives Y(z)(...

13 years ago | 1

| accepted

Answered
Any one can help me to check this code ?
There is a small mistake, it should be O' instead of O, A = [ 1 1 5; 2 1 6; 3 7 5 ]; B = ones(3,3) S = eye(3,3) O = [2 7...

13 years ago | 0

| accepted

Answered
how creat random text file
s='a':'z' n=4 out=s(randi(26,n,1))

13 years ago | 0

| accepted

Answered
To create cells with different names in a loop
names = {'joe', 'enna', 'fin'}; for k=1:numel(names) eval([names{k} '=cell(5)']) end Creating different names is not r...

13 years ago | 0

Answered
How to define this intergral
You can use a quad function. Example a function |f(x)=x^2+3| f= @(x) x.^2+3; Q = quad(f,0,10) % Integral between 0 and 10...

13 years ago | 0

| accepted

Answered
Error when plotting a graph
[x,y] = meshgrid(0:.2:2, 0:.2:2); z = 8*log(x.*y); surf(x,y,z);

13 years ago | 0

Answered
How can i eliminate a few column?
Use unique function help unique

13 years ago | 0

Answered
NCHOOSEK - What am I doing wrong?
V = [1 2 3 4 5 6 7 8 9 0 1 2]; V=reshape(V,4,[]); for i= 1:3 A{i} = V(:,i)'; end

13 years ago | 1

Answered
fft frequency magnitude plot of imported Excel sheet
N=xlsread('YourFileName.xls'); Magnitude=abs(fft(N))

13 years ago | 0

Answered
Display range of column and row of matrix in GUI table
If M is your array, use M(:,1:22) % frist part M(:,23:44) % second part M(:,45:66) % third M(:,67:88) % fourth

13 years ago | 0

| accepted

Answered
Fast average calculation of submatrices in large matrix
To improve the speed of your code two times: for i = 1:4:(1024-4) for j = 1:4:(512-4) v=M1(i:(i+4-1),j:(j...

13 years ago | 0

Answered
Changing lower bound of an array
Example: y(n)=n^2+1 and you want to start from 0 for n=0:10 y(n+1)=n^2+1 end % y(1) correspond to index 0

13 years ago | 0

Answered
error using load command.
The only logical explanation is: maybe you've saved by error your file with an empty variable: save ('C:\Users\Rick\Documen...

13 years ago | 0

Answered
How to Merge two structures.
x=10; y=20; data1=[x, x, 0, 0, x, x] data2= [0, 0, y, y, 0 0] data=data1; data(data1==0)=data2(data2~=0)

13 years ago | 0

| accepted

Answered
how to increase the amplitude of a gaussian pulse?
yi =900*gauspuls(t,50e3,0.6); plot(t,yi)

13 years ago | 1

| accepted

Answered
Create a static text box that displays a number, then adds one every time the GUI is opened.
In your opening function s=char(get(handles.text1,'string')); n=num2str(str2num(s(2:end))+1); s(end-numel(n)+1:end)=n se...

13 years ago | 0

| accepted

Answered
how to combine more than 2 matrics
a1=[1 2 3] a2=[4 5 6] a3=[7 8 9] out=[a1;a2;a3] There is no reason to get an error, unless your array are not the same s...

13 years ago | 0

Answered
writing data to a .txt file
fprintf(f, '%d%d\n',cell2mat([a'; b']));

13 years ago | 0

| accepted

Answered
Relational Operator doesn't work
Try refTime = 0:2e-3:1.5; t0 = 0.8; tolerence=1e-5 find(abs(refTime-t0)<tolerence)

13 years ago | 1

| accepted

Answered
Reading/Finding data withing column
constants=[0 0 0 0 1 0 0 25 1 1 0 74 1 1 1 122 0 0 0 200] a=constants(:,1:3) [idx,idx]=ismember(a,[1 1 0],'rows') out=c...

13 years ago | 0

Load more