Réponse apportée
Why is it always showing an error as phi is an undefined function for input argument type char ??
Sofiya, in your code above some of the variable names contain empty spaces (if the copy-paste worked), which is not valid. E.g. ...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
adding matrices with different dimensions
Dimitrios, you mean something like X = 1:50; theta = (1:180)*pi/180; mat = repmat(X',1,numel(theta)) - repmat(sin(...

plus de 11 ans il y a | 0

Réponse apportée
Attempted to access y(5); index out of bounds because numel(y)=2.
Jeppe, if I am not mistaken, |derivNL| defines a system of differential equations. If that's the case, change y = zeros(2,1...

plus de 11 ans il y a | 0

Réponse apportée
Figure ploting data problem
Giorgi, add after the |plot| command set(gca,'XTick',x,'XTickLabel',matrix1) to change the tick labels.

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
vectors must be the same lengths error with subplot
Anna, you need to define |x1| and |x2| first before you can use the variables to compute |y1| and |y2|. Use something like x...

plus de 11 ans il y a | 0

Réponse apportée
get on click coordinates from a plot (multiple times)
Hello Max, check out this <http://www.mathworks.com/matlabcentral/answers/125687-update-vector-values-and-return-to-the-program#...

plus de 11 ans il y a | 2

| A accepté

Réponse apportée
Make my code for taking norm efficient
Muahmmad, why don't you read in all data from the Excels files at once (in other words you are only calling |xlsread| twice) and...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
ode45 not enough input argument
saramatlab, use function my_ode() %main code T0 = 293; T1 = 300; Tf2 = 293; a = 0.2; R = 1; % not define...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
What's the problem ? Help me
Nguyen, you probably do not have access to the Symbolic Math Toolbox. Use ver at the command prompt to get a list of all ...

presque 12 ans il y a | 0

Réponse apportée
Wrong equastion of XY dependence
Use, x = -5:0.1:15; % create a vector x, element spacing: 0.1 a = 1; b = 12; c = 2.4; r = 1; y = -1*(a-b*(((x)-r...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
How to find the first 3 roots of sin(x)+0.5=0 bigger than zero? (Multiple roots)
Efe, that looks like a trick question... |sin(x)+5| cannot be equal to zero, since |sin(x)| is between -1 and +1.

presque 12 ans il y a | 1

| A accepté

Réponse apportée
Simple Undamped Forced Vibration Problem
bugatti79, your code looks fine. In other words, you correctly implemented the differential equation and, yes, MATLAB does retur...

presque 12 ans il y a | 0

Réponse apportée
How to plot a 3d plot (surf) from an XYZ table, X and Y coming from for loops?
hibou, use X = reshape(prev(:,1),[],2); Y = reshape(prev(:,2),[],2); Z = reshape(prev(:,3),[],2); surf(X,Y,Z)

presque 12 ans il y a | 0

| A accepté

Réponse apportée
how to plot a specific column of a matrix
Amin, use plot(mymat(:,2)) where |mymat| is the matrix.

presque 12 ans il y a | 6

Réponse apportée
time dependent parameter in ode-function matlab
Sejo, one fairly clean approach would be to split the integration interval: |[tdown 10),[10 11],(11 tup]| and call |ode45| three...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
How to combine two plots into one with separate markers
Jimmy, as a very efficient approach (if you only need to do it once) I recommend a simple copy-paste: # Open both figures # ...

presque 12 ans il y a | 26

| A accepté

Réponse apportée
How to restore simulink model from the subsystem?
Hello Gautam, you can <http://www.mathworks.de/de/help/simulink/ug/expand-subsystem-contents-1.html expand> the subsystem. This ...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Solving two systems of DEs using the ode45 function.
Vassil, check out function my_ode() alpha0 = 1; alpha1 = 1; beta0 = 1; beta1 = 1; lambda = 1; sigma = 1; pa...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Rounding of a number/ text file format
missC, you could use instead x = 1:5; fid = fopen('corner.txt','w'); fprintf(fid,' %d\n',x); % > %d: write integer v...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
How can I change the line color in a graph using plot?
vivek, check out the <http://www.mathworks.de/de/help/matlab/ref/plot.html#inputarg_LineSpec doc> for starters, e.g. x = 0:0...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Bug in matlab R2012b version
Scarzo, that's not a bug. Check out this <http://www.mathworks.de/matlabcentral/answers/69-why-does-1-2-3-1-3-not-equal-zero ans...

presque 12 ans il y a | 1

Réponse apportée
Need to do ode45 for various values iteratively
Muahmmad, you are almost there. Use a loop and something like function myode() alpha = 10:15; figure hold all for ii...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Is there a way to create all m files with already filled in some predetermined lines that are needed for every file like clear all; close all; author name etc?
Seetha, check out this <http://www.mathworks.de/matlabcentral/fileexchange/27132-automatic-template-for-new-functions File Excha...

presque 12 ans il y a | 2

| A accepté

Réponse apportée
NI-DAQ device not recognised
Hello Helen, have you installed the NI-DAQmx Support Package? You can get it either from the MathWorks Hardware Support <http://...

presque 12 ans il y a | 1

| A accepté

Réponse apportée
Error using dsolve function while solving differential Equation
Preethika, I do not know how you implemented it, so here is one approach: syms y(x) Dy = diff(y); D2y = diff(y,2); %...

presque 12 ans il y a | 0

Réponse apportée
Can you share meeting materials from the MATLAB & Simulink Racing Lounge?
Yes, the material is available on the MathWorks Formula Student Germany <http://www.mathworks.de/academia/student-competitions/f...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Subplots and thier Position (Expert needed)
Max, are you referring to cols = round(Ncam)/2+1; (I believe not)? If so, the code first divides by 2 and then adds 1 to ...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
SUSPENSION MODEL NOT WORKING PROPERLY!
Jacobo, if it's supposed to be two stable, coupled mass-spring-damper systems, the signs are probably off. Check out the attache...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Store all iteration loop outputs in a matrix
UTS, use instead m(i,:) = [i j k]; The output is an array |m| with 10 rows, 3 columns.

presque 12 ans il y a | 16

| A accepté

Réponse apportée
fminsearch error regarding matrix dimensions
MiauMiau, the function |funct| has only one dependent variable, |x|, correct? If so this needs to be reflected in the function c...

presque 12 ans il y a | 1

| A accepté

Charger plus