Réponse apportée
logical statement accelerates or decelerates speed?
Because, when you are increasing the no. of logical expression,leads to increase the memory allocation (i.e both temporary and ...

presque 13 ans il y a | 0

Réponse apportée
how i can plot this 3D graph ?
plot(x,y,z) or view(3) or plot3(x,y,z)

presque 13 ans il y a | 0

Réponse apportée
change column in matrix
a=1:2250; d=reshape(a,[75 30]);

presque 13 ans il y a | 0

Réponse apportée
How to run simulink model from gui written in script?
Through script, you can do this by before using sim('your model name'); Mention the *Tstop*=10 or any, then you can change this ...

presque 13 ans il y a | 0

Réponse apportée
how to get the co-ordinate values & labels when click on the plotted line
In plotted signal, goto *Tools*->enable *datacursor*, for signal name goto *insert*-> *legend*

presque 13 ans il y a | 0

Réponse apportée
How to animate an object in circular motion with its acceleration vectors showing.
Already your question is answered, check this: <http://www.mathworks.com/matlabcentral/answers/9541-moving-point-along-a-curv...

presque 13 ans il y a | 0

Réponse apportée
How to plot four variables value in XY graph
plot(x,y,'r*',x1,y1,'b-')

presque 13 ans il y a | 0

| A accepté

Réponse apportée
how can i sample a measured voltage signal in simulink and know the sampled value of each sample to calculate RMS of the voltage signal.
Use *RMS* block and mention *frequency* and then *to workspace* block and save format as *array*

presque 13 ans il y a | 0

Réponse apportée
Please format this code..?
Use 'diary' command

presque 13 ans il y a | 0

Réponse apportée
How to change matrix dimensions?
try this: a=zeros(1000,35,12); b=reshape(a,[1000 420]);

presque 13 ans il y a | 0

Réponse apportée
how can i store all simulation results from gibbs sampling VERTICALLY?
try this: for i=1:3 a{i}=i*ones(3); d(:,:,i)=a{i}; end

presque 13 ans il y a | 0

Réponse apportée
How to adjust value from matlab-mfile and feedback in simulink
step1:Initialize all i/p data in m-file & variable 'i' step2: use 'sim()' command to run your model step3: store the value...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
how to distinguish several curves in the scope?
you can increase the no. of axes to display each output. for changing the color of waveform in scope is available from r2011b ve...

presque 13 ans il y a | 1

| A accepté

Réponse apportée
Error reading value from workspace
Check whether your sample time of 'from workspace' block is inherited? Usually in 'from workspace', you have to mention both dat...

presque 13 ans il y a | 0

Réponse apportée
How to give input from matlab (mfile) to simulink model
you can do this by creating variable 'myinput' as constant block in simulink model

presque 13 ans il y a | 0

| A accepté

Réponse apportée
making different signals equal in length
Can you provide the data? you can do it by adding zeros, ones, any desirable data to the data having minimum sizes from data hav...

presque 13 ans il y a | 0

Réponse apportée
Matrix and vector multiplication elementwise
hi, a=[1 2 3;2 3 4;4 5 6]; h=[2 2 2]; for i=1:3 for j=1:3 c(i,j)=a(i,j)*h(i); end end di...

presque 13 ans il y a | 0

Réponse apportée
how to solve non-linear equations
you can't give variable name like w(0),w(1),w(2)..here variable is w and 0,1,2..are maybe iterations.. so declare variable clear...

presque 13 ans il y a | 0

Réponse apportée
How to send data from while loop during each iteration to simulink sub system model
while(....) for (...) pbest=[...] %no.of data depends on population gbest=[] %one globally best dat...

presque 13 ans il y a | 0

Réponse apportée
how can i store all simulation results from gibbs sampling ?
Check this: for i=1:3 a{i}=i*ones(3); end b=cell2mat(a)

presque 13 ans il y a | 0

| A accepté

Réponse apportée
Undefined function 'sym' for input arguments of type 'double'.
Read this mentioned link: http://www.mathworks.com/help/symbolic/sym.html

presque 13 ans il y a | 0

Réponse apportée
adding column in text file with value
Check the below code: a=zeros(68160,1); k=480; l=5; j=1; for i=1:numel(a) if i<=k a(i)=a(i)+0; ...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
How can I draw double Y-axis on a time series plot
You can do with 'subplot' command

presque 13 ans il y a | 0

Réponse apportée
How to Concatenate two large numbers in Matlab
a=10; b=20; a1=num2str(a); b1=num2str(b); c=strcat(a1,b1)

presque 13 ans il y a | 0

Réponse apportée
How to create multiple matrix using for loop?
Hi.. try this code a=[1:10]; for i=1:numel(a) if i==a(1) disp(a) elseif i<=6 a(1)=[...

presque 13 ans il y a | 0

Réponse apportée
Problem with for loop on MATLAB
Hi, try this code: num = input('Enter a number: '); p = 0; %even im = 0; %odd pos = 0; %positives n = 0; %nega...

presque 13 ans il y a | 1

Réponse apportée
Algebric loop in simulink
You can use 'from' and 'goto' blocks from simulink-->signal routing library.

presque 13 ans il y a | 0

Réponse apportée
combining strings by using loops
N=1000; F=0; for i=1:N if i==1 F(i)=F(i) +a.*x1(i,1)^2+b.*x2(i,2)^2+c./x3(i,3))-Outputs(i,1); else F(i)=F(i-1)...

presque 13 ans il y a | 0

Réponse apportée
how to change the bw to wb
In b/w image.. white=1, black=0; so you can replace by if pixel==1 pixel=0 elseif pixel==0 pixel==1 end

presque 13 ans il y a | 0

Réponse apportée
Using simulink as fitness function for GA
Hi, FYI,Genetic algorithm is a population based method, probably the gains for PID controller(i.e, Proportional gain, Integ...

presque 13 ans il y a | 0

Charger plus