A répondu
problems with a regex
A simple solution to parse the string with rule "is a " and ( " - touches edge" OR " - 3D" ) is to use sequential rege...

presque 11 ans il y a | 0

A répondu
Compiled MATLAB with TORQUE
You may alternatively consider writing a "monitor" thread or app using the MATLAB timer() functionality. See <http://www.math...

presque 11 ans il y a | 0

A répondu
problem in parsing data
You want to cast your data to right type. Default numeric type in MATLAB in double. You may want to use uint8() on your fread() ...

presque 11 ans il y a | 0

A répondu
array of interpolant created with csape
Looks like MATLAB function csape needs a first argument as a function handle!

presque 11 ans il y a | 0

A répondu
hello, i have a question regarding extrapolation of data in MATLAB... i have 52 years of inflow data and with reference to it i have only 28 years of silt data....so can i extrapolate my silt data upto 52 years...is there any command or code...
Have you looked at interp1 , fnxtr and friends ? * <http://www.mathworks.com/help/matlab/ref/interp1.html> * <http://www.mat...

presque 11 ans il y a | 0

A répondu
how to import data from multiple folders in matlab?
I don't understand your question. You seem to already have a working solution. filenames = {'path/1/fil1', ... } num...

presque 11 ans il y a | 0

A répondu
how to create cell array for time format elements in matlab
Your error message means that you are indexing the cell-array to get a subset of its elements as another cell-array. i.e. ...

presque 11 ans il y a | 1

| A accepté

A répondu
How to do time delay in PN sequence
If you understand that _p(n-k)_ in DSP terms is nothing but the same signal _p_ but time-shifted by the amount _k_ then it resol...

presque 11 ans il y a | 0

| A accepté

A répondu
Instantiating Object Arrays with superclass call
Will you be posting *the exact error message?* That would help solve your problem. I suspect you are running into problems wi...

presque 11 ans il y a | 0

A répondu
deploytool batch file issue
@Tobyn you probably want to invoke MATLAB from shell to do this right. I understand your code is executed on the windows comman...

presque 11 ans il y a | 0

A répondu
How do I make MATLAB list the various sequences possible for a specific purpose?
@Samyukta you seem to need a 'generative grammar'. You can do this via mutually recursive functions. You should type the followi...

presque 11 ans il y a | 0

A répondu
How can I save and load customized (background-)colors of blocks for later simulink sessions?
>> clr = get_param(gcb,'BackgroundColor','Orange') 'white' >> set_param(gcb,'BackgroundColor','Orange') Whole list ...

presque 11 ans il y a | 1

| A accepté

A répondu
Access elements/fields from a struct
In addition to the excellent answers posted by @Iain, and @Tom, you may also want to look at MATLAB support for JSON from the Fi...

presque 11 ans il y a | 0

A répondu
PARFOR loop is too slow
Key to using parfor must be the independence of each iteration; i.e. you cannot write variable updates like, a = a + 1 ...

presque 11 ans il y a | 0

A répondu
Data changing when I move it from one struct to another
I find your claim surprising, i.e. copying MATLAB data array from one variable to another, changes dimensions. This is very unli...

presque 11 ans il y a | 0

A répondu
Explanation of the matlab code
Your code calculates a filter kernel. I haven't run the code, but, it seems to me a kind of Gaussian filter, with some normaliza...

presque 11 ans il y a | 0

| A accepté

A répondu
Identifying Keywords in Strings strfind
I have two comments, while in general agreement with @Marc; 1. You can build strings out of sentences in first pass 2. Use c...

presque 11 ans il y a | 0

A répondu
publish a document with some pictures and no code
Have you looked at 'publish' command where some additional markup on your M-files can convert them into spiffy looking HTML, RTF...

environ 11 ans il y a | 0

A répondu
Import text file with header
z=textread('filename.dat','%s','delimiter','\n') z=z(4:end) q=regexp(z,',','split') data = reshape(str2double([q{:}])...

environ 11 ans il y a | 0

A répondu
How to function a sum
You can try something like, function val = Req( fhandle, arg, N ) val = 1; for itr = N:-1:1 %build from sma...

environ 11 ans il y a | 0

A répondu
Graphing the result of a regression in Matlab
You are missing all the '*' product signs between your polynomial coefficients and the variable; wrong MATLAB syntax doesn't get...

plus de 11 ans il y a | 0

A répondu
Trying to code two angular acceleration equations and angles
To give you a hint, 1/0 = Inf, 0/0 = NaN. So you need to avoid doing these things in your code. Special case the situations w...

plus de 11 ans il y a | 0

A répondu
How do I call a plot from a function in a GUI?
When using the GUI, you should create a new figure() and save the handle to it. h = figure(); plot(h, x_axis, y_axis, la...

plus de 11 ans il y a | 0

A répondu
read binary file into matrix
Pay attention to the 'source' and 'precision' options to fread(). >> doc fread is your friend Example from, <http://www...

plus de 11 ans il y a | 0

A répondu
How to open a file and store it in cell array?
See documentation pages for, fopen, fgetl, fread, fscanf, fclose >> doc fgetl Function fgetl, fread and fscanf return ...

plus de 11 ans il y a | 0

| A accepté

A répondu
Random Integers from a preconstructed non uniform distribution
A well known approach is called the 'Box Mueller' method. You generate a uniform random variable [0,1] to index into the cumulat...

plus de 11 ans il y a | 0

| A accepté

A répondu
Twist on the 'classic' tank filling / emptying problem
You can see the standard ODE solutions in Simulink, described among other places, on Mathworks blogs <http://blogs.mathworks.com...

plus de 11 ans il y a | 0

A répondu
how do i analyze measurement data .txt file
Hello Kingsley, You have a very broad based question; MATLAB is the right tool for your task. Take a look at the functions f...

plus de 11 ans il y a | 0

A répondu
Is it possible to write several statements into an anonymous function?
Great answers everyone; the best solution for this problem might still be 'reshape' based answer by Walter, Daniel and Matt - ea...

plus de 11 ans il y a | 0

A répondu
Rotate Normal Around Tangent
Paul, You need to find the points of a 2D rotation transform using the equations, for example affine transformation <http://en....

plus de 11 ans il y a | 0

Charger plus