Answered
3d representation of GPS coordinates
Hmmm... does stem3 help? t = 0:0.01:pi; x = sin(t); y = cos(t); z = t; stem3(x,y,z)

13 years ago | 0

Answered
how do I write the intergration part of an equation into matlab
I would start by simplifying the problem a bit. *Step 1 - for a fixed x1,x2, how could I calculate the integral?* For this, yo...

13 years ago | 2

| accepted

Answered
3D interpolation Help with
I always find this stuff cool for some reason. Anyway, TriScatteredInterp might help you X=[245 135 356 356 135 245 450 24...

13 years ago | 2

Answered
matrix array
Would reshape followed by transpose do the trick.... %Create data array data = [12 0 8 0 4 0 1 0 5 0 9 0 3 0 1 0 10 0 12...

13 years ago | 0

Answered
Multiple date and time formats in .txt files
I'm going to assume you have a cell array of strings of different formats. Could you define some criterion of being able to det...

13 years ago | 0

Answered
pushbutton coloring problem
Sounds like a bug. I would report it using the "Contact Support" button here: <http://www.mathworks.com/support/?s_cid=globa...

13 years ago | 0

Answered
What is the best way to execute a Simulink model step-by-step (interactively) from Matlab
Forgive the basic question, but why can't you just set the simulation inputs to change at desired points in the simulation? F...

13 years ago | 0

Answered
replacing multiple lines with multiple lines in ascii file
Can you read the whole file in and then just replace the strings? wholeFile = fileread('myFile.txt'); newStr = 'This is ...

13 years ago | 1

| accepted

Answered
multiple subplots in a figure
Similar question: <http://www.mathworks.com/matlabcentral/answers/6481-strange-behavior-bug-with-subplot-and-setting-outerposit...

13 years ago | 0

Answered
Unable to troubleshoot this error message
I'm not sure, but should [Z,Y]=RK4(-0.5e-8, [0.1;0.5], 20e-100, 50, @(Z,Y) prob5partb(z,y,n)); really be [Z,Y]=RK4...

13 years ago | 0

Answered
Increase the speed of the program
I may be missing something, but a general thought... Try replacing all those calls to dlmread with the textscan function. ...

13 years ago | 0

Answered
Nested Structures using Custom Storage Classes RTW EC
Can you be more specific as to how nested bus objects is limiting for you? Most people I've encountered achieve nested struct...

13 years ago | 1

Answered
Libraries, model workspace, base workspace and how to parameterize my models
Hi Carlos, Is there any specific reason you have decided on using libraries for this? It sounds like you'd have a much easie...

13 years ago | 0

| accepted

Answered
handles in GUI code
A little string searching combined with some struct functions will get ya what you need handles.instr1 = randn; handles....

13 years ago | 0

| accepted

Answered
assign differernt marker and put an offset in x-axis in subplot()
Two comments * You can easily plot a group of lines using a single call to the plot function if you arrange each column of th...

13 years ago | 0

Answered
Updating application data from several GUI's
When you write setappdata(0, 'hMainGui', hMainGui); MATLAB is literally just storing a number to the root level object 0...

13 years ago | 0

Answered
Structures in Simulink
Are you referring to a structured signal? If so, check out the Bus Creator block in the Simulink -> Signal Routing library.

13 years ago | 0

Answered
Callback and evalin
Also, not sure if you are aware of this, but you can have the Simulink model resolve variables in the caller workspace instead o...

13 years ago | 1

Answered
Problems updating variables from java generated m-files
Sounds like MATLAB isn't aware a file has changed, and might be using an old, cached version of it. Two thoughts you might tr...

13 years ago | 0

Answered
emlmex error
Is there any way you can upgrade MATLAB versions? It seems like support for MSVC 2010 has really improved between R2010a and R2...

13 years ago | 0

Answered
Disagreement between step function and stepinfo function.
Does the step function give ok results if you don't add t as a second argument? I ask because the spacing of your t vector may ...

13 years ago | 0

Answered
sort arrays with sortrows
How are you reading the data into MATLAB? I think the format you have the data stored in could make or break sortrows in certai...

13 years ago | 0

| accepted

Answered
read a file .txt with 'm' rows and 5 columns and ....
Ok i was curious... data = dlmread('myFile.txt','\t') %assuming tab delimited colsOfInterest = data(:,2:4) n...

13 years ago | 1

| accepted

Answered
Using EOF flag to change multimedia block parameters
Could you put the logic to switch files and restart the simulation in MATLAB instead? You could redefine the file using set_p...

13 years ago | 0

Answered
Trouble in upconverting a narrow band signal to a 1 GHz carrier using Simulink
Short answer - do one of the following * Insert a Rate Transition (Simulink -> Signal Attributes) block anytime you have a si...

13 years ago | 0

Answered
Converting iddata to a double
Is this what you mean? %Create fake data u = (0:0.01:2*pi)'; y = sin(u) + 0.1*randn(size(u)); %Create iddata o...

13 years ago | 2

Answered
Algebraic Loop Journey of Understanding
Adding an Enable port to a subsystem makes the subsystem Atomic, so Simulink has to treat the internal contents of the subsystem...

13 years ago | 0

Answered
strange behavior (bug?) with subplot and setting outerposition
I'm not 100% sure why it is removing the third axes. That aside, I've got a couple thoughts for ya 1. If you are going t...

13 years ago | 1

| accepted

Answered
Simulink to a DLL to execute from an Desktop .Net Application
You can certainly do this with your Simulink model. Simulink Coder (formerly Real-Time Workshop) allows you to generate C/C++...

13 years ago | 1

| accepted

Answered
Access Images in a zip file without unzipping
You may be able to find an external unzip utility and call it from within MATLAB using the system function. The GNU unzip seems...

13 years ago | 0

Load more