已回答
Unexpected MATLAB operator during using isnumeric and isletter
Jarvan, you misused the call to _input_ when you use word = input('Enter a letter and a #: ') Matlab expects the...

10 years 前 | 1

| 已接受

已回答
OBSERVING SIGNAL GENERATOR OUTPUT AT HIGH FREQUENCY IN SIMULINK
Hi, My guess is that you forget to change your simulation parameters. In the toolbar : Simulation -> Model Configuratio...

10 years 前 | 2

| 已接受

已回答
Error assigning variable in loop
You're trying to insert a 39928x1 vector in only one element of wsstd. size(wsstd(i,1)) == 1 for any i. So you have a dim...

10 years 前 | 0

| 已接受

已回答
Monitoring the Speed of write.m/save.m on a network
to mesure execution time in matlab : <http://fr.mathworks.com/help/matlab/ref/tic.html?searchHighlight=tic tic / toc>, see also ...

10 years 前 | 1

已回答
Finding the solution of an equation using midtpoint method
Hi, you just need to use <http://fr.mathworks.com/help/matlab/ref/fzero.html fzero>

10 years 前 | 0

已回答
How to use ode23s to solve heat equation
Xiaoyan, You're problem is a partial differential equation (PDE), so ode23 won't work, it's meant to solves ordinary differen...

10 years 前 | 0

已回答
Merging two vectors (via horzcat) turns everything into zero
Your values didn't became 0. it's just the display which is not complete. if you do a=1e-9; b=1000; c= [a b]; ...

10 years 前 | 0

| 已接受

已回答
How to handle with double integral with complicated expressions?
Hi, you defined _q_ and _p_ as function handles, and then you use them inside another function handle _func_. in _func_ y...

10 years 前 | 0

已回答
Global Position of Docked Figures window
Hi, When you dock some figures, they go in the Figure Editor, which is not a classic matlab figure. This is a java component....

10 years 前 | 0

| 已接受

已回答
How do I update individual elements in matrix in Simulink?
I attached 2 files. a Mscript and a model. in both, I do the same 3 cases. - one multiple assignment - two consecuti...

10 years 前 | 0

已回答
Embedded MATLAB Function and Anonymous function
Giuseppe, I don't know your code, but I guess you're gonna make something like : <</matlabcentral/answers/uploaded_fil...

10 years 前 | 0

已回答
Get selected objects (simulink)
Hi, _gca_ won't return the selected object, but the current axe in a figure (get current axe) I guess you meant _gcb_ (get...

10 years 前 | 2

| 已接受

已回答
How do I update individual elements in matrix in Simulink?
If you really need assignment block, it works that way : <</matlabcentral/answers/uploaded_files/20943/assign.jpg>> ju...

10 years 前 | 1

已回答
access row and column number in variable editor
Access it with the index of your data. XX = rand(10); edit with the vriable editor and select some part: <</matla...

10 years 前 | 0

已回答
Embedded MATLAB Function and Anonymous function
Hi, an Embedded Matlab Function is not a Mfile, it's a simulink block, in which you can use classic matlab functions. if y...

10 years 前 | 1

已回答
[Simulink] How to find different Sample Time blocks
Hi, I guess you'd like something like % get all constant block in the model AllConstBlocks = find_system(bdroot,'Bloc...

10 years 前 | 0

已回答
Drawnow without displaying all calculation results in command window
Hi, You should decompose your code in 2 part. 1st part : create the graphic objcet at the first iteration 2nd part : update...

10 years 前 | 0

| 已接受

已回答
How do I update individual elements in matrix in Simulink?
Hi, an easy solution will be the use of a <http://www.mathworks.fr/help/simulink/slref/matlabfunction.html Matlab function bl...

10 years 前 | 0

已回答
What's the name of this block in Simulink?
Hi, quick question : Do you have Simulink ? If not, and if you don't know the blocks, you're gonna struggle with your tech...

10 years 前 | 0

| 已接受

已回答
remove to only one whitespace in a string
Hi, you need to use a regular expression mystr = 'Lets go party'; mystr = regexprep(mystr,'\s+',' '); ...

10 years 前 | 3

| 已接受

已回答
How can I plot time vs. frequency curve of time-series data?
Ok, I will not read this full paper. But I guess you want to make figures like the number 5. You need to use <http://www....

10 years 前 | 0

已回答
Error using vertcat(out of memory)
Hi, you're saying that the numbers of rows of B changes at each iteration. so B increases at each iteration ? and A ? ...

10 years 前 | 0

已回答
Display array in GUI after pressing button
Hi, Don't use a textbox. use uitable, this way you can put any kind of data : numeric, string, logical,.. see the documen...

10 years 前 | 1

| 已接受

已回答
Importing a matrix in Simulink, extracting rows and interpolate
Here's what I'd do : change your function as : function a = interpolation(MyInput) % 1 - remove the line table = impo...

10 years 前 | 0

| 已接受

已回答
Importing a matrix in Simulink, extracting rows and interpolate
Hi, a lot of classical matlab functions are NOT supported by the "Matlab function" block (in the preivous version, it was "Em...

10 years 前 | 0

已回答
How to write to variable in simulink
Hi, you can send the result of simulation in the workspace of matlab with a _to workspace_ block and after the simulat...

10 years 前 | 0

| 已接受

已回答
Overlaying several matrices diagonally to create a larger matrix
% Assuming all your m1,m2,...,m12 variables exist and are size 8x8 NumberOfSubMat = 12; % Initialize M M=zero...

10 years 前 | 0

| 已接受

已回答
??? Error using ==> fscanf. Invalid file identifier. Use fopen to generate a valid file identifier.
try this : %% Root Path pathroot = 'C:\Temporal_series'; %% first level folder MyNumericalDir = [30852 22061 2...

10 years 前 | 0

| 已接受

已回答
change plotyy axis label using property editor
Actually, plotyy creates 2 superimposed axes, the second is transparent (that's the trick). so you need to change the axes yo...

10 years 前 | 1

| 已接受

已回答
Hi all, I have a question regarding the counter block used in simulink
it seems that your data _val_ has singletons. to remove them, use _squeeze_. clear x x(1,1,1:3)=1:3 cleandata ...

10 years 前 | 0

| 已接受

加载更多