Answered
Bump --> using tfdata on Discrete Transfer Function
You are not using the same variables, (numdxx and numkdxx). Also, if you want to make a comparison, just use the same variable z...

12 years ago | 0

| accepted

Answered
Help with Error using ==> plus message
Just change this part of the code uk=0; wk=0; for kk=1:NNN-1 ttt(kk+1)=dt*kk; xxx(:,kk+1)=Ad*xxx(:,kk) + uk + Gd*wk...

12 years ago | 1

| accepted

Answered
plot 3-D figure in matlab
xlim([0 50])

12 years ago | 1

| accepted

Answered
I am not able to get the correct output. Can someone please do this me?
<http://www.mathworks.com/matlabcentral/fileexchange/30326-pv-array-simulink-block>

12 years ago | 0

Answered
I want to use plot
z={{rand(1,3)},[{rand(1,3)} {rand(1,3)} {rand(1,3)} {rand(1,3)} {rand(1,3)} {rand(1,3)} {rand(1,3)}],[{rand(1,3)} {rand(1,3)} ...

12 years ago | 0

| accepted

Answered
How Can I delete specific elements in a matrix and transfer them to other
A=[1 2 3 4; 1 8 9 10; 11 12 20 6] ; You can't delete any element from your matrix. You can delete an entire column...

12 years ago | 0

| accepted

Answered
i am new to matlab can anyone please explain this lines
If you are new with Matlab, the best thing to do is to read the <http://www.mathworks.com/videos/getting-started-with-matlab-689...

12 years ago | 0

Answered
Compare MATLAB and SIMULINK?
There is no comparison between Matlab and Simulink, because Simulink is one of many tools that are provided with Matlab. When yo...

12 years ago | 2

Answered
How do i convert from Complex numbers(a+bi) to a polar form(r,theta) ?
x=2+3j rho=abs(x) theta=angle(x) %------------------- x=rho*exp(j*theta)

12 years ago | 13

Answered
my matlab shows matrix dimension must agree error
Check the sizes of j and m size(j) size(m)

12 years ago | 0

Answered
How to set resolution for the numerical calculations in MATLAB
sol=roots([1 3 1]) sol1=sprintf('%.20f,',sol)

12 years ago | 0

Answered
How do I plot a cell array where every cell contains an (x,2) matrix?
The better way to do it is to use the for loop

12 years ago | 0

| accepted

Answered
How to give the output of previous function to the next function as input
For example for k=1:10 y=your_function(x) x=y end

12 years ago | 1

Answered
How can I use colors in my surf, truely?
surf(x,y,z,z)

12 years ago | 0

| accepted

Answered
Reading in data from irregular xls/text file
a={[0.35,0.57,0.77,0.98];[];[0.42,0.73,0.93,1.12];[];[0.37,0.62,0.82];[0.43,0.67,0.87,1.07]} cell2mat(a')

12 years ago | 0

Answered
How to assambly two cells without for loop ?
n1=numel(uu1) n2=numel(uu2) Out=cell(1,n1+n2) Out(1:n1)=uu1 Out(n1+1:n1+n2)=uu2

12 years ago | 0

| accepted

Answered
How to vectorize this "for" loop, or parallel it.
fun = @(x,y) x + x.*y; N=1000 [y,x]=meshgrid(1:N,1:N); out=triu(fun(x,y))

12 years ago | 0

Answered
How is (-2)^(2/3) different than ((-2)^2)^(1/3) ?
<http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F>

12 years ago | 1

Answered
How does this matlab function works?
doc size doc zeros doc eye You can also try an example >> A=[1 2 3;4 5 6] B=zeros(size(A,1),1) C=eye(size(A))...

12 years ago | 0

| accepted

Answered
Can a simulink model be dumped into hardware?
From a simulink model, you can generate a c code (you will need a Simulink coder). Some hardware (like <http://www.dspace.com/en...

12 years ago | 0

| accepted

Answered
Loop insider a loop Plot, Please Help
clear Sigma = 5:5:30; n=numel(Sigma) t = linspace(0,30,n); s=zeros(1,n); for k = 1:n; s(k) = (Sigma(k)-3+0.072*t(k)...

12 years ago | 1

Answered
error with results, matlab
Maybe you want fprintf('\\nWYKRYTO: ');

12 years ago | 0

Answered
how can i generate a random number out of a range??
a=rand out=1/a*sign(a-0.5) %or for a vector n=10; a=rand(1,n);out=1./a.*sign(a-0.5)

12 years ago | 0

| accepted

Answered
How to store values from a loop?
ii= 2:0.1:10 sol=cell(numel(ii),1) for y=ii x = fzero(@(m) Y(m,y),4); sol{y}=x; end celldisp(sol)

12 years ago | 2

Answered
Generating square wave using an embeded matlab function
Seyedfoad, You can't define the time inside the Embedded function, you can notice that your output y is not a scalar, but a vect...

12 years ago | 1

Answered
how to set rounded to 4 decimal places for a vector?
This will round to 4 decimals u=rand(1,10) n=4 y=round(u*10^n)/10^n Now if you want to display for decimals, without...

12 years ago | 1

| accepted

Answered
Back track the index of a matrix
A=[ 1 3 5; 9 7 6; 2 8 4]; B= [7 4 3]; idx=[]; idy=[]; for k=1:numel(B) ij=ismember(A,B(k)); [ii,jj]=find(ij); ...

12 years ago | 1

Answered
How to do a while loop
test=0; while test==0 test=input('You are in a while loop. Press 1 to exit the loop and 0 to stay'); %your code en...

12 years ago | 0

Answered
Legend Error. Need Help ASAP. Why is the error coming? What am I doing wrong?
Use plot before a legend legend ({'NOON', 'BAT' , 'FLAT', 'Binomial'})

12 years ago | 0

Answered
i want to replace cell data to index.
I think this is the best way: a = {[1 2 3 4 ] [5 6] [ 7 8 9]} ; index = [2 1 3] ; b=[10 11 12]; for k=1:numel(a) a{...

12 years ago | 0

| accepted

Load more