Feeds
已回答
summation of diffrent lengths in vector
I would do this with some logical indexing magic. a=[0.0 0.0 0.3 0.4 0.5 0.0 0.0 0.0 0.0 1.0 1.1]; step = 0.1; tmp = a>0;...
summation of diffrent lengths in vector
I would do this with some logical indexing magic. a=[0.0 0.0 0.3 0.4 0.5 0.0 0.0 0.0 0.0 1.0 1.1]; step = 0.1; tmp = a>0;...
13 years 前 | 0
| 已接受
提问
problem with dashed and dotted lines in png output
Hi, I'm producing many plots as png for presentation (mainly because pdfs act a bit weird when inserted into ms office - and for...
13 years 前 | 2 个回答 | 0
2
个回答已回答
Space key stops working
*Update* It just happened again. Came back from coffee break - and just blinking. Directly before I was changing the window...
Space key stops working
*Update* It just happened again. Came back from coffee break - and just blinking. Directly before I was changing the window...
13 years 前 | 0
已回答
Fibonacci and Golden Ratio
Actually the Golden Ratio is exactly: ( 1 + sqrt(5) ) / 2 so no need for iteration. Proof is easy through z-transform....
Fibonacci and Golden Ratio
Actually the Golden Ratio is exactly: ( 1 + sqrt(5) ) / 2 so no need for iteration. Proof is easy through z-transform....
13 years 前 | 1
已回答
An easy question from a beginner....the solving of this equation
Have a look at fzero. help fzero You can easily modify your equation to the one in the example.
An easy question from a beginner....the solving of this equation
Have a look at fzero. help fzero You can easily modify your equation to the one in the example.
13 years 前 | 1
已回答
Find a round pattern in an image
Sounds like a textbook example for hough transform. Look at: <http://en.wikipedia.org/wiki/Hough_transform> Especially scrol...
Find a round pattern in an image
Sounds like a textbook example for hough transform. Look at: <http://en.wikipedia.org/wiki/Hough_transform> Especially scrol...
13 years 前 | 1
提问
Is there an easy way to localize an output (set the language)
Mostly I keep my output in english - but quite often I'm asked to produce tables and plots in german. Till now I was changing...
13 years 前 | 1 个回答 | 0
1
个回答已回答
data correction
well in some way you will have to use isnan. You could use |bwconncomp| to find "lonely" Nans. Like in this example: %% creat...
data correction
well in some way you will have to use isnan. You could use |bwconncomp| to find "lonely" Nans. Like in this example: %% creat...
13 years 前 | 1
提问
Space key stops working
Hi, This happens to me about once every two weeks and so far I do not know how to reproduce the error. So maybe you have sugges...
13 years 前 | 2 个回答 | 0
2
个回答已回答
selecting random
If you want with laying back you could get random indices with: ind = randi(1e6,1e4,1); xout = x(ind);
selecting random
If you want with laying back you could get random indices with: ind = randi(1e6,1e4,1); xout = x(ind);
13 years 前 | 0
已回答
Figure settings
I wrote <http://www.mathworks.com/matlabcentral/fileexchange/31477-fixes-to-print-huge-plots-as-png> to solve a similar problem ...
Figure settings
I wrote <http://www.mathworks.com/matlabcentral/fileexchange/31477-fixes-to-print-huge-plots-as-png> to solve a similar problem ...
13 years 前 | 1
已回答
Matlab Runs Slower during each consecutive iteration
One thing that happens often to me is that I forget to close invisible windows. (created by figure('visible','off') ) maybe t...
Matlab Runs Slower during each consecutive iteration
One thing that happens often to me is that I forget to close invisible windows. (created by figure('visible','off') ) maybe t...
13 years 前 | 1
已回答
setting up code to run matrix of parameter values
I would do that by nested for loops: global F_1 F_2 R_R1 R_R2 V_1 V_2 global equil datamat = []; for F_1 = [0.25 0.5 1.25 2.5...
setting up code to run matrix of parameter values
I would do that by nested for loops: global F_1 F_2 R_R1 R_R2 V_1 V_2 global equil datamat = []; for F_1 = [0.25 0.5 1.25 2.5...
13 years 前 | 0
已回答
Interfacing With External Program
On a similar problem I used the program expect to talk to the "bad" program for me. Say as mediator. (manual is at eg <http://ww...
Interfacing With External Program
On a similar problem I used the program expect to talk to the "bad" program for me. Say as mediator. (manual is at eg <http://ww...
13 years 前 | 0
已回答
problem of DOS window
Maybe the predefined commands will suffice. |msgbox| and |dialog| come to mind.
problem of DOS window
Maybe the predefined commands will suffice. |msgbox| and |dialog| come to mind.
13 years 前 | 0
已回答
database toolbox - sql query problems
seems the string's not valid. did you try replacing the apostrophes with ''(2 apostrophes) or " ?
database toolbox - sql query problems
seems the string's not valid. did you try replacing the apostrophes with ''(2 apostrophes) or " ?
13 years 前 | 0
已回答
Equation resolution
I also only see the trivial solution C(z,t) = 0 But let me take some notes and see if a something more general is possible. Le...
Equation resolution
I also only see the trivial solution C(z,t) = 0 But let me take some notes and see if a something more general is possible. Le...
13 years 前 | 0
| 已接受
已回答
toString function (trying to write a function that takes a cell array expression and returns a string)
looks you are nearly done. All I notice is that you always call the toString in all cases but the one with 'Num'. This means i...
toString function (trying to write a function that takes a cell array expression and returns a string)
looks you are nearly done. All I notice is that you always call the toString in all cases but the one with 'Num'. This means i...
13 years 前 | 0
已回答
Time Series Forecasting
The system identification toolbox comes with the command |pem| which can construct a state spcae model through "prediction error...
Time Series Forecasting
The system identification toolbox comes with the command |pem| which can construct a state spcae model through "prediction error...
13 years 前 | 0
已回答
periodic functions
I would write it as function: function y = myfun(x,x1) %definition of function xx = mod(x,1); % remainder to start of period ...
periodic functions
I would write it as function: function y = myfun(x,x1) %definition of function xx = mod(x,1); % remainder to start of period ...
13 years 前 | 0
已回答
Do you suffer from keyboard latency in this forum?
Such a behaviour I experience only when working through remote desktop. What browser are you using? On a related matter - ...
Do you suffer from keyboard latency in this forum?
Such a behaviour I experience only when working through remote desktop. What browser are you using? On a related matter - ...
13 years 前 | 1
已回答
nice boxes for great linewidths
hmmm the boxes idea looks clear. Though I'm a bit anxious about it since it might have some side effects on the other graphics I...
nice boxes for great linewidths
hmmm the boxes idea looks clear. Though I'm a bit anxious about it since it might have some side effects on the other graphics I...
13 years 前 | 1
| 已接受
提问
nice boxes for great linewidths
Hi, I'm producing lots of boxplots for a collegue of mine. He needs them with a very big line width (for poster or so, and in...
13 years 前 | 3 个回答 | 0
3
个回答已回答
Extracting data from a cell format
You can do the splitting with regexp. It will look like: out = regexp(in , '([.0-9]+) (.*)','tokens') This will give ...
Extracting data from a cell format
You can do the splitting with regexp. It will look like: out = regexp(in , '([.0-9]+) (.*)','tokens') This will give ...
13 years 前 | 0
已回答
Reading a string to get required data
Personally I don't remove the "html jargon" in such cases. I use regexps like: table_lines = regexp(table,'<tr [^>]*>(.*?)</t...
Reading a string to get required data
Personally I don't remove the "html jargon" in such cases. I use regexps like: table_lines = regexp(table,'<tr [^>]*>(.*?)</t...
13 years 前 | 0