답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

| 수락됨

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

12년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
Sum of first 100 integers?
my_sum = 0; for ii = 1:100 my_sum = my_sum + ii; end

12년 초과 전 | 2

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

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

12년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 5

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

더 보기