답변 있음
How do you request an input inside disp?
João, you could use |inputdlg| prompt = {'Input file name:'}; name = 'File name'; numlines = 1; answer = input...

대략 11년 전 | 0

| 수락됨

답변 있음
Need Help On Vehicle Routing Problem
Raj, check out the File Exchange. There are <http://de.mathworks.com/matlabcentral/fileexchange/index?utf8=%25E2%259C%2593&term=...

대략 11년 전 | 0

답변 있음
Suppression failure on evalin command
Ian, put the semi-colon right after the |i(1)=1| statement evalin('base','i(1)=1;')

대략 11년 전 | 0

| 수락됨

답변 있음
Calculation of New Date using a Reference Date and Time Elapsed
Srikanth, you could use the |addtodate| function new_date = datestr(addtodate(datenum('2014-07-24 15:32:45'),7852,'sec'))

대략 11년 전 | 0

| 수락됨

답변 있음
When I try and plot this graph the figre comes up but no graph
Andrew, it's there, just hard to see. Use instead plot(a,f,'*b')

대략 11년 전 | 0

| 수락됨

답변 있음
Keyboard shortcuts to navigate around layout windows
Diego, the one I know (default) is |Strg| + |Tab|.

대략 11년 전 | 0

답변 있음
How to choose the maximum value in the given matrix ?
Arul, you could use [M,I] = min(a(:,4)); small_D = a(I,:);

대략 11년 전 | 0

| 수락됨

답변 있음
Plot frame problem while using hold function
ApolloPT, just swap these two lines: h=plot(VD1,ID1_sqrt,'LineWidth',2,'color',cor); hold on; in other words h=plot...

대략 11년 전 | 0

| 수락됨

답변 있음
Plot multiple lines with gradient gray hue
Alverto, you could use something like my_col = repmat(linspace(0,1,10)',1,3); % create your own gray colors color map t =...

대략 11년 전 | 2

답변 있음
How do I output a scientific (exponential) number multiplied by a symbol.
Karim, have you tried vpa(I8) or vpa(I8, 4) % showing 4 significant digits

대략 11년 전 | 0

답변 있음
I need to know if I can use matlab/simulink student suite 2014a with arduino add-ons.
Michael, are you referring to the <http://www.mathworks.com/hardware-support/arduino-matlab.html MATLAB and Simulink Support Pac...

대략 11년 전 | 0

| 수락됨

답변 있음
Error "not enough input arguments"
Thomson, restructure your code in the following way. Put both functions in the same m-file and save it under the same name as th...

대략 11년 전 | 6

| 수락됨

답변 있음
changing axis values into names
Locks, add to your code ax = gca; ax.YTick = [-1,1]; ax.YTickLabel = {'contango','backwardation'};

대략 11년 전 | 1

| 수락됨

답변 있음
Saving vectors in a loop, wont save at time=0
Dan, I recommend to save the inital value of the DE before you enter the loop. Also because indexing in MATLAB starts at "1", wh...

대략 11년 전 | 0

답변 있음
Solving non homogenous differential equations numerically using ode45 etc
Sarah, yes you can. The typical approach for such an example is to create two functions: function my_EOM() a = 1; A ...

11년 초과 전 | 1

| 수락됨

답변 있음
Finding the index of a height.
Steven, use something like x = 1:0.1:5; y = sin(x); % this would be your height ind = find(x==min(x(y<0)))

11년 초과 전 | 1

| 수락됨

답변 있음
How to build a new matrix
Something like b = reshape(bsxfun(@minus,2*repmat(a,1,2),[1 0])',1,[])

11년 초과 전 | 0

| 수락됨

답변 있음
How do I get a mixed string from several arrays of strings?
Pelle, use instead for ii = 1:numel(factor1) for jj = 1:numel(factor2) filename{jj+(ii-1)*numel(factor2)} = str...

11년 초과 전 | 0

답변 있음
Function Loop with ODE45
Sarah, check out the function below. This should get you started: function phase() IC = 5*(rand(50,2)-0.5); hold on fo...

11년 초과 전 | 0

답변 있음
write on xaxis of graph
Elysi, not quite sure, what you need to do, but this does the trick: set(gca,'XTickLabel',{'PCA', 'LDA'},'XTick',[1 2]);

11년 초과 전 | 1

| 수락됨

답변 있음
Help: if condition with evaluating multiple statements?
Khanh, only one of the |if| ( |elseif| ) statements is executed. In your case it is the second one, because it is the *first* co...

11년 초과 전 | 0

| 수락됨

답변 있음
How to find sum using single statement?
Airas, use f = sum(arrayfun(@(x) 0.5^x,1:100)) or, with your approach, add the |sum()| f = sum((ones(1,100).*1/2).^([...

11년 초과 전 | 0

| 수락됨

답변 있음
How could I check my solution if I am doing a definite integration please?? I mean,since a definite integral is the limit of a sum so could I write a code using sum to check my results??
Avan, yes you could. For example: f = @(x) sin(x); a = 1; b = 5; N = 100; f_int1 = integral(f,a,b) f_int2 = sum(...

11년 초과 전 | 0

답변 있음
using dsolve, ways to get particular solution only?
Paul, I am not aware of a setting that would allow you to print the particular solution, only. You can, however, eliminate t...

11년 초과 전 | 0

답변 있음
deconv function remainder won't appear
Zoe, you need to call the function the same way it is defined. In other words, use c = [1,5]; u = [1,2]; [q,r] = arrayd...

11년 초과 전 | 0

| 수락됨

답변 있음
Get script used by Matlab after using Plot tools
Masao, yes there is. Once you are done editing the figure go to |File > Generate Code...| in the figure window.

11년 초과 전 | 1

| 수락됨

답변 있음
MATLAB has encountered an internal problem, each time after several minutes
Pauline, please contact Tech Support online ( <http://www.mathworks.fr/support/contact_us/> ) or at +33-1-41-14-8700 (and "4" fo...

11년 초과 전 | 0

| 수락됨

답변 있음
how to do this
Agil, what is |A|? Is it supposed to be |x|? At any rate, in MATLAB language you'd use something like x = 0:0.1:pi/2; ...

11년 초과 전 | 0

답변 있음
Error using mesh, Z must be a matrix
Espen, use x = linspace(0,4,20); y = linspace(0,4,20); [X,Y] = meshgrid(x,y); % create a grid of data points Z ...

11년 초과 전 | 2

| 수락됨

더 보기