Réponse apportée
Build a circuit in Simulink, values of the elements come from workspace, and simulated S-Parameters return to workspace? Is this possible?
Hello Huang, use the <http://www.mathworks.com/help/simulink/slref/fromworkspace.html From Workspace> and To Workspace blocks...

plus de 12 ans il y a | 1

Réponse apportée
Solving boundary value problem for piecewise defined differential equation
Look at this problem as an *initial value problem* and turn it into an optimization problem: # Set up an algorithm that integ...

plus de 12 ans il y a | 0

Réponse apportée
How to pass an cell array as input to a function
Remove the |{a}| in the function input: |shift_and_Average(a,needed,p5,p4,p3,p2)|

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Shuffle vector with constraints
Since I do not know what techniques you have tried, here's (another) one? Start with sorting the 1's, 2's, etc. in matrix form,...

plus de 12 ans il y a | 0

Réponse apportée
integrating equations obtained from polyfit
See <http://www.mathworks.de/matlabcentral/answers/34612#answer_43412>, e.g., trapz(x, exp(theta_x - 1).*y_fx) where |th...

plus de 12 ans il y a | 0

Réponse apportée
Scramble words in MATLAB.
See below: function [permsout] = scrambleWords(s) cutPoints = regexp(s,'\s{1,}'); % for More than 1 Space=> '\s{2,}'...

plus de 12 ans il y a | 1

Réponse apportée
Initial Conditions parameter for ode23
The exact same way, just write down the matrix, e.g., |A0 = [1 2 3; 4 5 6]|.

plus de 12 ans il y a | 0

Réponse apportée
How to find out if subset of data is or ins't greater than an altered mean value
Hello Natalie, does this help? A = [0 1 2;2 3 0;3 0 2] A = 0 1 2 2 3 0 3 ...

plus de 12 ans il y a | 0

Réponse apportée
Saving a matrix from a function file
Could you share more of your code to see what exactly is happening, maybe as an attachment (see paper clip)? Note, that in th...

plus de 12 ans il y a | 0

Réponse apportée
Sources for learning the intricacies of Simulink?
There are the <http://www.mathworks.com/academia/student_center/tutorials/index.html?s_tid=gn_loc_drop online tutorials> for sta...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Why the image is upside down when I display it in a graph?
Simply add (only) set(gca,'YDir','reverse'); In other words, try img = imread('KAM-Map_12s.bmp'); hold on; im...

plus de 12 ans il y a | 3

| A accepté

Réponse apportée
Solving Matrix Equation in Simulink
The basic structure looks like this: <</matlabcentral/answers/uploaded_files/6776/Unbenannt.PNG>> In the embedded function...

plus de 12 ans il y a | 1

Réponse apportée
1.1 + 0.1 == 1.2 returns false
MATLAB is a numerical software tool, not an algebraic one. What you are seeing there is the numerical accuracy measure called <h...

plus de 12 ans il y a | 0

Réponse apportée
problem in simulink connections..??
Make sure to drag the signal line all the way from the output of one block to the input of the other. <</matlabcentral/answ...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
How to use an external script/app to automatically start the matlab model without the user having to manually press the run button
You can use callbacks in your GUI for this task. See for example <http://www.mathworks.de/de/help/matlab/creating_guis/initializ...

plus de 12 ans il y a | 1

Réponse apportée
Plz tell me how to detect the face of a person in an image.I want matlab code for this.
Hello Tawheed, have you checked <http://www.mathworks.de/matlabcentral/fileexchange/13701-face-detection-in-matlab File Exchange...

plus de 12 ans il y a | 0

Réponse apportée
plotting a 1*1 matrix
First, |t| and |current| need to be of same size, both 1x10028 (or 10028x1) vectors. So, for example, use t = linspace(1,...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Roots of a fractional polynomial with solve()
Are you required to find all roots (<= 100!)? At any rate, I'd recommend plotting the function to get a first impression on ...

plus de 12 ans il y a | 0

Réponse apportée
Plotting arrays as x and y axis.
Are they both 1000x1 (or 1x1000) arrays? If yes, you can simply use plot(x,y) where |x| and |y| are the two arrays. If n...

plus de 12 ans il y a | 4

Réponse apportée
Simulation time affects simulation output
In a perfect world, yes, you would get the same results. Numerical integration is everything but perfect though. Just a couple o...

plus de 12 ans il y a | 0

Réponse apportée
How do I create endpoints for a line in a 3D plot?
Linking this question to your other, related <http://www.mathworks.de/matlabcentral/answers/112148#answer_120654 one>. Just like...

plus de 12 ans il y a | 0

Réponse apportée
Placing circles on the ends of a vector
Use h = quiver3(0, 0, 0, x1, y1, z1, 0); otherwise the line gets scaled (shortened) automatically. Update: Starting in R024a ...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How can I plot the confidence bounds for an exponential fit?
You mean something like this? a = [1.842; 1.755; 1.929]; b = [-0.002508; -0.002784; -0.002232]; x = linspace(-10...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How to plot x(t) = exp(-t)*u(t) using syms symbolic function?
Use the |heaviside| -function: syms x ezplot(heaviside(x)*exp(-x), [-2, 2])

plus de 12 ans il y a | 2

Réponse apportée
How do you program a button to hide/unhide a GUI?
How about minimizing/maximizing the GUI (figure)? See *<http://mathworks.de/matlabcentral/answers/98331#answer_107681 this>* Ans...

plus de 12 ans il y a | 0

Réponse apportée
Simulink and Embeded Matlab Function
I guess, there might be a bug inside the embedded function. Did you make sure that the matrix-vector operations are all correct?...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
extract a number from text file
I would probably use the importdata function: filename = 'myData.txt'; delimiterIn = ' '; headerlinesIn = 7; ...

plus de 12 ans il y a | 3

Réponse apportée
exp(-x) - sinx = 0
Try the |<http://www.mathworks.de/de/help/matlab/ref/fzero.html fzero>| function. Unless, of course, you would like to do it on ...

plus de 12 ans il y a | 0

Réponse apportée
Can anyone help me to search for ones in the rows of a matrix and replace the remaining ones with zeros?
>> a = [1 1 0; 1 1 1; 0 1 1] a = 1 1 0 1 1 1 0 1 1 >> b = [a...

plus de 12 ans il y a | 0

Réponse apportée
Having problem in the rotational animation of a lander
Hello Giorgos, a. What exactly do you mean by "observing" and "camera"? Are you referring to the fact that you cannot see the...

plus de 12 ans il y a | 0

Charger plus