Réponse apportée
How to disable shortcut hints in editor?
Michael, you can change/delete keyboard shortcuts following the approach described <http://www.mathworks.com/help/matlab/matlab_...

plus de 12 ans il y a | 0

Réponse apportée
How to code this? Resampling of vector
For these straightforward time values, this will do sum(reshape(s,4,3)) If |t| gets more complex you should be able to f...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
Dispalying an image in a panel in GUIDE
See this <http://www.mathworks.de/matlabcentral/answers/26183#answer_34331 answer> for reference. Especially the second answer s...

plus de 12 ans il y a | 0

Réponse apportée
How can i run a simulink model for given simulation time
Bhawesh, you mean, you would like to set the simulation stop time? This is done using set_param('mySimulinkModel','StartTim...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
plotting a graph using matlab
Try something like: t = 0:5:100; x = sin(t); plot(t,x,'*') xlabel('time in s') ylabel('my y axis') title('my...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
eliminate all exponential part in the matrix
Elysi, one option would be to convert matrix values to strings (or read as strings from file) and crop, if necessary: if ~i...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
how to drew vertical black line?
Use the <http://www.mathworks.com/help/matlab/ref/line.html |line|> command. line([1,1],[0,2],'Color','k') draws a black...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
2 second order differential equation using ode45
Vin, you are close. In the last two equations solve for |x2'| and |y2'| (so you end up with two equations containing only one *o...

plus de 12 ans il y a | 0

Réponse apportée
Angles between 3 vector in 3d
You can make use of the dot product (between vectors): vec1 = [-0.063695 -0.588189 2.333766]; vec2 = [0.008239 -...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
Subscription assignment dimension mismatch error?
How about: ... lines = 4; answer = inputdlg(prompt,title,lines,def); A(1,:) = str2num(answer{1}(1,:)); A(2,:) ...

plus de 12 ans il y a | 0

Réponse apportée
Input disturbance in a level control system
First, how and where (in terms of a block diagram) a disturbance enters the systems is typically dictated by the physics of the ...

plus de 12 ans il y a | 0

Réponse apportée
Adding columns to matrix using circshift by auto incrementing
You coud use a simple loop: z = [0;1;2;3]; z_mat = zeros(length(z)); z_mat(:,1) = z; for ii = ...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Matlab academic licence use, how many posts of installation?
Valentin, it depends on the <http://www.mathworks.com/help/install/license/activation-types.html *activation type*>. For individ...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Running through a randomly generated array and doing calculations
Ian, what is |HW1Rand(1,1:20)|, in other words, how is the function/matrix defined? Also, for assignments in MATLAB you'd use a ...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Root locus of dynamic equation
Satyajit, you could simply compute the root loci in a loop for different values of |a| and plot them in 3D ( |plot3| ). The root...

plus de 12 ans il y a | 0

Réponse apportée
How can I determine if Database Toolkit is present in my installation?
Use the ver command to list all installed toolboxes. Additionally, you can list all licensed toolboxes with licen...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How can I uninstall matlab 2012 if I can't find the uninstall.exe in the matlab folder
|uninstall.exe| is typically located in a folder with a path equal or similar to (for 64 bit, but you will find the equivalent f...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Sum of first 100 integers?
my_sum = 0; for ii = 1:100 my_sum = my_sum + ii; end

plus de 12 ans il y a | 2

| A accepté

Réponse apportée
Software Maintenance Service Renewal
Hello Alexander, you can certainly re-activate SMS. You will have to pay pro-rated SMS fees for the time SMS has been expired. P...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
How can I change the behavior of the commenting function so that the location of the % respect the indentation?
Franck, probably the easiest way is to use *smart indenting*: select all text (CTRL + a) and then use CTRL + i.

plus de 12 ans il y a | 0

Réponse apportée
Help Using Simulink tp draw ODE
Dylan, the basic structure looks like this: <</matlabcentral/answers/uploaded_files/7692/Unbenannt.PNG>> Try using...

plus de 12 ans il y a | 0

Réponse apportée
I need your help. y'(t) = -30*y+30*t^2+2*t; y(0)=1, & exact solution is y(t)=e^-30*x +x^2. i can't understand what is different b/w kr4 plotting & its error . i need both graph n error please send me code.
Are you trying to plot the result? If so, just save the integration step results in a matrix: function rungekutta123 h =...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
I am developing a small program in MATLAB GUI. How can I save the uitable output and print outs?
Check out this <http://www.mathworks.com/matlabcentral/answers/101648#answer_110996 answer>.

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
run m.file Same time with simulink
Hello behzad, check out <http://blogs.mathworks.com/seth/2008/12/25/initializing-parameters/ Guy and Seth's blog> on this topic....

plus de 12 ans il y a | 0

Réponse apportée
How to make a function proceed in time when t is unknown
I suggest computing the time |tend| at which |v=-20 m/s| by hand, since it is so simple and then use v0 = 46; t0 = 2; ...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
limit computation time of a simulink simulation
Sure, in the model window the simulation time can be entered (in sec). In the figure below it is set to 10 sec. <</matlabce...

plus de 12 ans il y a | 0

Réponse apportée
How can I insert xyz label and title in 3D plotting
Use title('My title') xlabel('My x label') and similarly for |y| and |z| axes.

plus de 12 ans il y a | 5

| A accepté

Réponse apportée
i have a coloum data, how to normalize it in Source Scanning Algorithm
The simple approach: abs(data)/norm(data) Are you concerned about algorithm speed?

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
matlab code for automated images slideshow?
Romasha, have you checked out <http://www.mathworks.de/matlabcentral/fileexchange/24007-figure-slideshow-generator this entry> i...

plus de 12 ans il y a | 0

Réponse apportée
weight vector iitiali zation
Anusha, you are probably looking at the |<http://www.mathworks.com/help/stats/pdist.html pdist>| command. See example at the bot...

plus de 12 ans il y a | 0

Charger plus