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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 2

| akzeptiert

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

fast 13 Jahre vor | 2

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 1

| akzeptiert

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 1

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 1

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 1

| akzeptiert

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 2

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 1

| akzeptiert

Beantwortet
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++...

fast 13 Jahre vor | 1

| akzeptiert

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

fast 13 Jahre vor | 0

Mehr laden