Answered
Contour with discrete (x,y) and continuous z
I am not sure if I fully understand your need. Does the following options for contourf() fit you need? [x,y,z]=peaks(10); ...

15 years ago | 0

Answered
slider callback
No, I tried your code and it worked fine. Maybe: 1. You don't need the "end" statement 2. You need to save the function ...

15 years ago | 0

Answered
How to programatically send Update Diagram command to Simulink
Use set_param('sys', 'SimulationCommand', 'cmd')? where 'sys' is the name of the system and 'cmd' is 'start', 'stop', 'pause'...

15 years ago | 5

| accepted

Answered
value that increase along with changing value by manual switch block simulink using embedded matlab function
Okay, feed the switch output signal to the triggered subsystem, still choose "either". Also, feed the switch output signal to an...

15 years ago | 1

Answered
Can Group licenses and Concurrent licenses be used together?
You can combine any license you got. MATLAB has a particular order to search for your available licenses. Search for "Understand...

15 years ago | 1

| accepted

Answered
Overwrite data in figure but keep axis labels, title, and legend
h=plot(rand(1,100)); title('random signal'); legend('blue signal'); set(h,'XData',1:10,'YData',1:10);

15 years ago | 2

| accepted

Answered
value that increase along with changing value by manual switch block simulink using embedded matlab function
Do you have to use EML? If not, it could be done easily in Simulink using a trigger subsystem. Type "sldemo_counters" to open th...

15 years ago | 1

| accepted

Answered
strcat two char arrays, how to remove the space?
You either have trailing white space at the end of "a" or leading whitespace at the begining of "b". check out the following fun...

15 years ago | 1

Answered
how to return a value from uicontrole callback
Please refer to this: <http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.3F>

15 years ago | 0

Answered
removing speech marks from data
What do you mean speech marks? If it is text header, can you simply ignore them and import the numeric data only. When you do th...

15 years ago | 0

Answered
data sharing between two GUI and with in a GUI
Put a break point at this line and run your code, check what is the value of handles.pp_val, can you run the following command i...

15 years ago | 0

Answered
Look up table for a dynamics problem
I see more serious problem with your approach. You are simulating your model using MATLAB. When you say transfer function, do yo...

15 years ago | 0

Answered
adding noise to an ecg signal
You must have you ECG signal data. You need to know the time step of the data,i.e. what is the elapsed time between the first da...

15 years ago | 0

Answered
mix and match input and output port locations
I don't think it is possible. The inports are always on the left and outports on the right. You could rotate the block but alway...

15 years ago | 0

Answered
detect smallest or bigest value of signal in stateflow and simulink
Okay, it can be done in Simulink, if you can follow me here. Drag a Constant block, put in [3 4 5] as its value, label its outp...

15 years ago | 1

| accepted

Answered
measure data size in simulink
In your Simulink model, click menu Format>Port/Signal Displays, check "Port Data Types" and "Signal Dimensions", you will see th...

15 years ago | 1

Answered
how to solve this error in simmulation
Well, from the message and take a look at your data, your data always increases by 1 except at 40 and 42.

15 years ago | 0

Answered
Saving successive simulations in Simulink
I am not aware of a direct method. You could do it if you are willing to write some scripts. The signalbuilder() function is the...

15 years ago | 0

Answered
Color palette for financial graphs (price index, returns, distributions etc...)
In Excel, click menu Tools>Options then click the Color tab, you'll see the color palette, select the color you like, then click...

15 years ago | 0

Answered
Help in programming
This is typical when you have this bang-bang like control. You can use the Relay block to implement a upper and lower limit.

15 years ago | 0

| accepted

Answered
Scalar division and Subtraction ?!!
Why do you use cell for your variable u? change it to be data array. u = {10,2,11,4,5,6} u = [10,2,11,4,5,6] lambdaMa...

15 years ago | 2

| accepted

Answered
Markov Chain - Hidden Markov Model; how to create markov chains and combine them to a hidden markov model
I am not sure what do you want. If you want to combine two vector, it is pretty easy. FirstDay=[0 0 0 0 0 1 1 1 0 0 1 0 0 0 0...

15 years ago | 0

Answered
Simulink Subsystems
You probably need to explain why is the constrain that Subsystem A needs to be finished before Subsystem B can run. Currently yo...

15 years ago | 2

Answered
Problem using Embedded MATLAB Fcn Block in Simulink?
When you use the "From Workspace" block, you can directly type in DAC_OUT because it is saved by the "To Workspace" block in the...

15 years ago | 0

Answered
detect smallest or bigest value of signal in stateflow and simulink
S=[3 4 5 7 8 9 11 12 13 14]; C=20; H=C-S; [MinVal,MinInd]=min(H) MinSignal=S(MinInd) [MaxVal,MaxInd]=max(H) MaxSig...

15 years ago | 1

Answered
Script won't run..
I am assuming you are using a shared license. Even when you are in the MATLAB command window, the MATLAB license you got when yo...

15 years ago | 0

Answered
Selecting data from a plot in a GUI
Michael, I've been thinking about this problem. You can use Brush on your plot. Click the "Brush" icon, select a group of data ...

15 years ago | 3

Answered
Appending Matrix
So it's not really append A, rather it is setting one element of A to 1 one at a time. What you need is to load A from guidata a...

15 years ago | 1

| accepted

Answered
Extraction a certain part out of Matrix
The code below will find the first longest continuous row of ones. Data=rand(100,1); index=Data>0.5; Data(index)=1; ...

15 years ago | 0

Answered
Selecting data from a plot in a GUI
plot(magic(5)); [x,y]=ginput You can select multiple data points, Press return when you are done.

15 years ago | 6

Load more