Answered
Breakpoints required for code to work correctly?
What do you mean "doesn't seem to work"? Any error messages? If you don't have break point, is it that the progress bar didn't c...

15 years ago | 1

| accepted

Answered
function compiler information
This may not be what you are looking for. Just in case that you are trying to get all the port block names of your subsystem blo...

15 years ago | 0

Answered
Creating a ledgend with multiple colors for one set of data
It sounds reasonable to me that you can split your data points into three sets. It's relatively easy to split them apart based o...

15 years ago | 0

Answered
How do you set up a boundary value problem?
It is called anonymous function. It is the same as: function bcond=MyFunction(ya,yb) bcond=[ya(1);yb(1)+.5570];

15 years ago | 0

Answered
Excel column operations in Matlab
I believe the solution can be found in this post. <http://www.mathworks.com/matlabcentral/answers/12938-parsing-a-vector>. It is...

15 years ago | 0

Answered
Table to word
If you have this toolbox <http://www.mathworks.com/products/ML_reportgenerator/description1.html>.There used to be a product cal...

15 years ago | 0

Answered
GUI for Simulink realtime indication
I think you have some misunderstanding. Simulink Real-Time Workshop is used to generate C code from a Simulink model. The C code...

15 years ago | 0

Answered
Deleting a row or column of a matrix
Or y(21:end,21:end)=[]

15 years ago | 0

| accepted

Answered
Shifting a wave in time domain in simulink
Set your simulation start time at 2.

15 years ago | 2

Answered
NonLinear Line Fitting - forced/constrained
Does this post <http://www.mathworks.com/matlabcentral/answers/13255-least-squares-linear-fit-to-be-forced-to-pass-through-a-spe...

15 years ago | 0

Answered
how to use hysteresis current controller
Not sure what you mean by "hysteresis current controller". Are you looking for some blocks to deal with hysteresis? Check the Re...

15 years ago | 0

Answered
PCODE
Using pcode(), you will get many .p files, maybe as many as your .m file. Using mcc(), you might be able to get one .exe file bu...

15 years ago | 0

Answered
3D Rose Plot?
theta = 2*pi*rand(1,50); rose(theta) A wild guess: [x,y,z]=sphere; figure(1);surf(x,y,z); figure(2);surf(x,y,z+rand(...

15 years ago | 0

Answered
MATLAB Simulink communication in real time
Use a Constant block in your Simulink model. While your simulation is running, you can double click the Constant block and chang...

15 years ago | 0

Answered
Importing data into datastructure with GUI
The variable A is in your function workspace, not the base workspace. # You can put a break point in your code to debug it. ...

15 years ago | 0

| accepted

Answered
How to Quit MATLAB using C# & COM?
Here is what I found in the document. I couldn't test it though whether ml.Quit works or not. ml.Quit ml.delete Example — ...

15 years ago | 0

Answered
How do I run through a vector combining every 3 values together
A = [1 1 1 2 2 2 3 3 3]; B=reshape(A,3,[]); C=sum(B) Added error checking A=[1 1 1 2 2 2 3 3 3]; N=2; try B=...

15 years ago | 2

| accepted

Answered
How in the world can you remember the syntax of all or most of the builtin functions without refering to help on section everytime you use it...
My answer: # There are hints available, both in Command Window and M-editor as described by Oleg. # You can use "Tab" key to...

15 years ago | 0

Answered
Error in fzero usage
Watch this video: <http://blogs.mathworks.com/videos/2010/09/02/using-debugger-to-walk-through-code/> for basic code debugging t...

15 years ago | 0

Answered
Setting parameters of a certain block
Is this what you want? Define a variable in workspace, MyConstant=1, use this "MyConstant" for your Constant block and Relay ...

15 years ago | 1

Answered
Reverse 2D-lookup Table
To use non codegen supported functions, you need to declare eml.extrinsic('function_name'), but that is not what I am suggesting...

15 years ago | 1

Answered
Error in fzero usage
"The number of sites, 8, is incompatible with the number of values, 7." This message seems to be an error message from that part...

15 years ago | 0

Answered
Determine current format in command window
get(0,'Format')

15 years ago | 2

| accepted

Answered
Reverse 2D-lookup Table
For a given value of A1 and C1, you should be able to find the corresponding value B1. Do a two-loop iteration on different valu...

15 years ago | 8

| accepted

Answered
Renaming Files
Something alone the line as below. Proceed with caution. count=1; for k=1:29 Files=dir(['naic',num2str(k),'.xlsx.*'])...

15 years ago | 0

| accepted

Answered
editing a variable
Or X(1:end-10)=[]

15 years ago | 0

Answered
dir function help
dir(['videos',filesep,'*.jpg'])

15 years ago | 0

Answered
Problems with loops! (vectorization maybe)
You don't really have a 5-dimensional data. I think it should be nx5 matrix list of all the arrangements. The function you are ...

15 years ago | 0

Answered
help understanding simple Vectorization
C=A(:,1).*B(A(:,1))

15 years ago | 0

| accepted

Answered
Replacing elements of a Matrix meeting conditional
A=rand(14,5);A(:,1)=1:14; B=rand(5,4);B(:,1)=10:-2:2;B(:,4)=10*B(:,1); [Dummy,IndexA,IndexB]=intersect(A(:,1),B(:,1)); ...

15 years ago | 0

| accepted

Load more