Answered
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_...

12 years ago | 0

Answered
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...

12 years ago | 1

| accepted

Answered
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...

12 years ago | 0

Answered
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...

12 years ago | 0

| accepted

Answered
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...

12 years ago | 0

| accepted

Answered
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...

12 years ago | 1

| accepted

Answered
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...

12 years ago | 0

| accepted

Answered
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...

12 years ago | 0

Answered
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 -...

12 years ago | 1

| accepted

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

12 years ago | 0

Answered
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 ...

12 years ago | 0

Answered
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 = ...

12 years ago | 0

| accepted

Answered
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...

12 years ago | 0

| accepted

Answered
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 ...

12 years ago | 0

| accepted

Answered
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...

12 years ago | 0

Answered
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...

12 years ago | 0

| accepted

Answered
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...

12 years ago | 0

| accepted

Answered
Sum of first 100 integers?
my_sum = 0; for ii = 1:100 my_sum = my_sum + ii; end

12 years ago | 2

| accepted

Answered
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...

12 years ago | 1

| accepted

Answered
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.

12 years ago | 0

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

12 years ago | 0

Answered
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 =...

12 years ago | 0

| accepted

Answered
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>.

12 years ago | 0

| accepted

Answered
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....

12 years ago | 0

Answered
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; ...

12 years ago | 0

| accepted

Answered
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...

12 years ago | 0

Answered
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.

12 years ago | 5

| accepted

Answered
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?

12 years ago | 0

| accepted

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

12 years ago | 0

Answered
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...

12 years ago | 0

Load more