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

más de 12 años hace | 1

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

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 1

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 3

| aceptada

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

más de 12 años hace | 1

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

más de 12 años hace | 0

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

más de 12 años hace | 1

| aceptada

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

más de 12 años hace | 1

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

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 4

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 2

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

más de 12 años hace | 0

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 3

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

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 0

Cargar más