Feeds
提问
How to generate code for a model with tunable parameter avoiding an algebraic loop?
How can one generate C code for the attached model? Parameter Td needs to be tunable ion the generated code. Simulink compla...
10 years 前 | 0 个回答 | 0
0
个回答提问
When will MATLAB 2014b release?
I noticed that in the past few years the "b" versions were released almost all in early September but this year it looks like it...
10 years 前 | 5 个回答 | 1
5
个回答已回答
Clean variables of worskpace from GUIDE
You can send commands to base workspace using the evalin() function as you mentioned. For example you can say: evalin('base'...
Clean variables of worskpace from GUIDE
You can send commands to base workspace using the evalin() function as you mentioned. For example you can say: evalin('base'...
11 years 前 | 0
| 已接受
已回答
From cartesian to polar with points
vectors = V(2:2:end) - V(1:2:end); % vector has half the size(1) of V X = vector(:,1); Y = vector(:,2); [THETA,RHO]...
From cartesian to polar with points
vectors = V(2:2:end) - V(1:2:end); % vector has half the size(1) of V X = vector(:,1); Y = vector(:,2); [THETA,RHO]...
11 years 前 | 0
已回答
saveas command saves plot with black background and no axis lables
if your platform is windows go to display settings for the screen and change to a "classic view".
saveas command saves plot with black background and no axis lables
if your platform is windows go to display settings for the screen and change to a "classic view".
11 years 前 | 0
已回答
Help with errors - Unable to meet integration tolerances, Time integration failed, Attempted to access u(5), index out of bounds because numel (u)=4
As far as for a PDE, if you want to make sure that this singularity is something related to your numerical integration method or...
Help with errors - Unable to meet integration tolerances, Time integration failed, Attempted to access u(5), index out of bounds because numel (u)=4
As far as for a PDE, if you want to make sure that this singularity is something related to your numerical integration method or...
11 years 前 | 0
| 已接受
已回答
Simulink bloc to check if a condition is true during a period of time
You can use a *"Weighted Sample Time"* block to know what's the sampling time and an *"If"* block to create a condition. If y...
Simulink bloc to check if a condition is true during a period of time
You can use a *"Weighted Sample Time"* block to know what's the sampling time and an *"If"* block to create a condition. If y...
11 years 前 | 0
已回答
GUI throws error: Attempt to reference field of non-structure array.
You are probably trying to use, handles.something where you have not previously defined it in the callback function or ...
GUI throws error: Attempt to reference field of non-structure array.
You are probably trying to use, handles.something where you have not previously defined it in the callback function or ...
11 years 前 | 0
已回答
How to set Matlab do display all calculation results?
When the plotted data does not correspond to the whole "time span", it is usually because of that the time span is too large in ...
How to set Matlab do display all calculation results?
When the plotted data does not correspond to the whole "time span", it is usually because of that the time span is too large in ...
11 years 前 | 0
已回答
who knows how to convert double to cell so i can get a 2D plot ?
mat2cell() cell2mat()
who knows how to convert double to cell so i can get a 2D plot ?
mat2cell() cell2mat()
11 years 前 | 0
已回答
Help with Simulink system?
In Simulink, equations are integrated in time. Your system doesn't seem to have governing (continuous or discrete) equations, in...
Help with Simulink system?
In Simulink, equations are integrated in time. Your system doesn't seem to have governing (continuous or discrete) equations, in...
11 years 前 | 0
已回答
How I can generate a continuous signal using a solver with fixed step size?
You need to let your tmax be 0.4 and solve then discard the data for 0.3<t<0.4
How I can generate a continuous signal using a solver with fixed step size?
You need to let your tmax be 0.4 and solve then discard the data for 0.3<t<0.4
11 years 前 | 0
已回答
GUI Push button Help !
Open your GUI figure file by right clicking on its name in the MATLAB current folder window and choosing GUIDE. Find the push...
GUI Push button Help !
Open your GUI figure file by right clicking on its name in the MATLAB current folder window and choosing GUIDE. Find the push...
11 years 前 | 0
| 已接受
已回答
ode45 - Does matlab keep track of derivatives which can be recalled?
Re-formulate your equations from x_dot = f(t,x,x_dot) to g(t,x,x_dot) = f(t,x,x_dot) - x_dot = 0 and then use ...
ode45 - Does matlab keep track of derivatives which can be recalled?
Re-formulate your equations from x_dot = f(t,x,x_dot) to g(t,x,x_dot) = f(t,x,x_dot) - x_dot = 0 and then use ...
11 years 前 | 0
| 已接受
已回答
Multi Dimensional Cell Array
maxsize1 = 100; maxsize2 = 100; maxsize3 = 100; mycell = cell(maxsize1 ,maxsize2 ,maxsize3 ); mycell{1,1,1} = A1; ...
Multi Dimensional Cell Array
maxsize1 = 100; maxsize2 = 100; maxsize3 = 100; mycell = cell(maxsize1 ,maxsize2 ,maxsize3 ); mycell{1,1,1} = A1; ...
11 years 前 | 0
已回答
how Can I Know that two Blocs were connected in the same subsystem?
Use get_param to get the parameter of the two blocks. Find out the lines connected to the two blocks with get_param . ...
how Can I Know that two Blocs were connected in the same subsystem?
Use get_param to get the parameter of the two blocks. Find out the lines connected to the two blocks with get_param . ...
11 years 前 | 0
已回答
Calling a function f inside f,how can we do this
Just as a side issue: You better change the name of the function from a one letter name "f" to at least a 2 letter name. I remem...
Calling a function f inside f,how can we do this
Just as a side issue: You better change the name of the function from a one letter name "f" to at least a 2 letter name. I remem...
11 years 前 | 0
提问
supporting cells for code generation
Do MATLAB compiler and MATLAB Builder NE support cell type variables? I'm asking because I just found out MATLAB coder does...
11 years 前 | 1 个回答 | 0
1
个回答已回答
Adding up words in matrices on Matlab
b = {'Hello' 'my' 'name' 'is' 'kevin' 'Susan'}; a = strsplit('kevin, kevin my baby I am telling you Hello Hello my name is ...
Adding up words in matrices on Matlab
b = {'Hello' 'my' 'name' 'is' 'kevin' 'Susan'}; a = strsplit('kevin, kevin my baby I am telling you Hello Hello my name is ...
11 years 前 | 0
已回答
Movefile access is denied error
MATLAB has opened to write to file and hasn't closed them... Exit MATLAB then try moving/deleting the files.
Movefile access is denied error
MATLAB has opened to write to file and hasn't closed them... Exit MATLAB then try moving/deleting the files.
11 years 前 | 0
已回答
I want to know how to convert these lines of code into c
Use MATLAB coder to convert matlab code into C code.
I want to know how to convert these lines of code into c
Use MATLAB coder to convert matlab code into C code.
11 years 前 | 0
已回答
set_param Command calls OpeningFcn
If the GUI is not open, as soon as you call to open it, the OpeningFcn runs. Now its up to you what to put in the Opening Fcn. Y...
set_param Command calls OpeningFcn
If the GUI is not open, as soon as you call to open it, the OpeningFcn runs. Now its up to you what to put in the Opening Fcn. Y...
11 years 前 | 0
已回答
tic toc in a GUI
tic toc gives you the total elapsed amount of time. There is no such meaning of all the instances... you cannot save time instan...
tic toc in a GUI
tic toc gives you the total elapsed amount of time. There is no such meaning of all the instances... you cannot save time instan...
11 years 前 | 0
已回答
How can I get the value from an inner callback function to an outer function?
assigin('caller','a',20) creates a parameter a in the caller function and assigns 20 to it. assigin('base','a',20) do...
How can I get the value from an inner callback function to an outer function?
assigin('caller','a',20) creates a parameter a in the caller function and assigns 20 to it. assigin('base','a',20) do...
11 years 前 | 0
已回答
Vectorizing inside a loop
The problem with matrix(i:n:end,4:6)=y(i,:)-matrix(i,1:3); is that the first index i:n:end is a vector and does not cor...
Vectorizing inside a loop
The problem with matrix(i:n:end,4:6)=y(i,:)-matrix(i,1:3); is that the first index i:n:end is a vector and does not cor...
12 years 前 | 0
已回答
how matlab calculate the sqrt of complex number?
usually powers of between 0 and 1 of complex numbers have multiple answers! As an example, (-3-6i)^(1/2) [THETA,RHO] = ...
how matlab calculate the sqrt of complex number?
usually powers of between 0 and 1 of complex numbers have multiple answers! As an example, (-3-6i)^(1/2) [THETA,RHO] = ...
12 years 前 | 0
已回答
Is it possible to terminate ode45 once a certain condition is met during integration?
to stop the integration you need to define an "event" function. Loop up ODE45 documentation and see how you can define the event...
Is it possible to terminate ode45 once a certain condition is met during integration?
to stop the integration you need to define an "event" function. Loop up ODE45 documentation and see how you can define the event...
12 years 前 | 0
已回答
Delete double cell array entries
CellArray={[1 2 3] [1 2] [3 5 6 7] [1 2] [2 4] }; NewCellArray = [CellArray(1:3) CellArray(5)];
Delete double cell array entries
CellArray={[1 2 3] [1 2] [3 5 6 7] [1 2] [2 4] }; NewCellArray = [CellArray(1:3) CellArray(5)];
12 years 前 | 0