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

más de 12 años hace | 0

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

más de 12 años hace | 1

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 1

| aceptada

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 1

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 2

| aceptada

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

más de 12 años hace | 1

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 5

| aceptada

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

Cargar más