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

12 years ago | 1

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

12 years ago | 0

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

12 years ago | 0

| accepted

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 1

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

| accepted

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

12 years ago | 3

| accepted

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

12 years ago | 1

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

12 years ago | 0

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

12 years ago | 1

| accepted

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

12 years ago | 1

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

12 years ago | 0

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

12 years ago | 0

| accepted

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

12 years ago | 0

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

12 years ago | 4

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

| accepted

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

12 years ago | 0

| accepted

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

12 years ago | 2

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

12 years ago | 0

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

12 years ago | 0

| accepted

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

12 years ago | 3

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

Load more