Solved


Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

13 years ago

Answered
different combination of numbers
perms([1 2 3]) Refer <http://www.mathworks.in/help/matlab/ref/perms.html perms>

13 years ago | 0

| accepted

Answered
Error using horzcat. CAT arguments dimensions are not consistent.
Check the data type of N in both cases.

13 years ago | 1

Answered
How to make a certain graph..?
Search the internet for an equation or relation for the graph i.e. between impedance and frequency of an 500 ohm thin film resis...

13 years ago | 0

Answered
How to set simulation to calculate every one second time
I guess this query is already answered here by Walter Roberson : <http://www.mathworks.in/matlabcentral/answers/26276-real-ti...

13 years ago | 0

Answered
HI guys help me out with this.
Refer this : <http://www.mathworks.in/help/coder/gs/product-description.html MATLAB Coder> Although its only for C/C++. Ch...

13 years ago | 0

Answered
How to pass values from GUI to workspace
Refer this : <http://www.mathworks.in/help/matlab/ref/assignin.html Assignin>

13 years ago | 0

Answered
How to join the contests on the matlab central contest page?
From what I know it is a semi-annual event i.e. held every six months. Will probably be held in April-13. Check out the Rece...

13 years ago | 0

| accepted

Answered
adding every element of an array with every element of another array?
Do you need to do this in MATLAB code ? A = [ 1 2 3 4] B = [ 5 6 7 8] C = A + B = [ 6 8 10 12 ] Comment back if your...

13 years ago | 0

Solved


Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

13 years ago

Answered
comparing relevant elemnts of two matrix
By 'little-equal' I assume you mean 'less than or equal'. Use a <= b assuming a,b are of same dimensions. See <htt...

13 years ago | 0

Solved


Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

13 years ago

Answered
Please help with Regular Expression ..
Change the pattern to '<black>\w+</black>'.

13 years ago | 0

| accepted

Answered
How can I edit the Simulink To Workspace block from a .m file?
blk_prop_struct = get(get_param('blk_path','Object')); OR blk_prop_struct = get(blk_handle); gives you most of the ...

13 years ago | 0

Solved


Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

13 years ago

Answered
Accessing simulink blocks in Matlab scripts
You could use <http://www.mathworks.in/help/simulink/slref/load_system.html load_system> command to load the model into memory w...

13 years ago | 0

Answered
how to transfer entire cide from a.m file to b.m???
Use the <http://www.mathworks.in/help/matlab/ref/copyfile.html copyfile> command.

13 years ago | 0

Answered
any application closing using matlab
This should help !taskkill -f -im processname.exe _processname_ is the one listed in the task manager. Type "TASKKILL...

13 years ago | 5

Answered
How to access Fundamental Sample Time value within a simulink model
SampleTime = get_param(MdlName,'FixedStep') gives you the _Fixed-step size (fundamental sample time)_ as specified in _Simul...

13 years ago | 2

| accepted

Answered
How to find the location of a minimum value in cell array?
The first thing that comes to mind is find(q{n} > 0) It will you give you locations of elements matching the condition ...

13 years ago | 0

Answered
How to find the execute but don't display output syntax of a loop?
Use ';' at the end of a statement. It suppresses the display of output on the command window. In your case A(i,j)=i*j-j^2...

13 years ago | 0

Answered
License error or the function?
Check if you are able to run any basic function from Statistics_Toolbox in the command window first. If you get the same erro...

13 years ago | 0

Answered
How can I make the settings that are available for the target scope in a mfile
For the 'xpclib/Misc./Scope (xPC) ' block, use the 'formatstr' property set(scs,'formatstr','%15.6f') also u can set m...

13 years ago | 0

Answered
Problem with simple division like Y./X
As per ur data x ranges from -1 to +1. For those x values y ranges from -1 to +2. Since y values are not symmetric, u wont ge...

13 years ago | 0

Solved


Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

13 years ago

Solved


Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

13 years ago

Answered
How can I stream data form MATLAB to Simulink in real time?
Explore the 'RuntimeObject' property of non-virtual blocks.

13 years ago | 0

Answered
Problem with simple division like Y./X
This is the plot from the data u shared. For plotyy(a1,b1,a2,b2) b1 vs a1 is plotted on the left side while b2 vs a2...

13 years ago | 0

| accepted

Answered
I am trying to execute the below code to plot the discharge curve of battery for the collected data,but i am getting errors,pls can u help me in this
I believe MATLAB is unable to access the function 'voltageextraction' that you are calling from within 'discharge_plotting1' on ...

13 years ago | 0

Load more