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

mehr als 12 Jahre vor | 1

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

mehr als 12 Jahre vor | 0

Beantwortet
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)|

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
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,...

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 1

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 3

| akzeptiert

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

mehr als 12 Jahre vor | 1

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 1

| akzeptiert

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

mehr als 12 Jahre vor | 1

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

mehr als 12 Jahre vor | 0

Beantwortet
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,...

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 4

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
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])

mehr als 12 Jahre vor | 2

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

mehr als 12 Jahre vor | 0

Beantwortet
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?...

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 3

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

Mehr laden