답변 있음
Print a cell arrays into text file
You want to try and use '%04d' '%10s' to print 4 digit integers, and 10 letter strings, i.e. use a maximum limit, and fixed widt...

12년 초과 전 | 0

문제를 풀었습니다


Negation the hard way
Write a function that has the following property: f(f(x)) = -x for any numeric array x. Note that there is no restriction on ...

12년 초과 전

답변 있음
problem with control signal
If your signal is in variable *x*, you need to use the transform, y = (x+10)/2 So you can implement this equation easi...

12년 초과 전 | 1

답변 있음
How can I plot this vector
Hello @Osasu I recomment learing about MATLAB via tutorial, <http://www.mathworks.com/help/matlab/ref/plot.html>. I recommend...

12년 초과 전 | 0

답변 있음
Using Sum(W) ==1 as a condition in a function
@Andrew on the similar lines as @Image Analyst - I think your return value is not assigned because you don't enter the if-condit...

12년 초과 전 | 0

답변 있음
Send PuTTY Command Through Matlab Script
AFAIK this is not currently possible in MATLAB, i.e. to have a live terminal session - you need pipes and MATLAB doesn't offer t...

12년 초과 전 | 0

| 수락됨

답변 있음
I need to do a Sign Restriction SVAR in Matlab
@Gareth MATLAB has concepts of script and a function. You cannot mix both. If you start a M-file with a MATLAB command that i...

12년 초과 전 | 0

| 수락됨

답변 있음
Is it possible to download and process images Asynchronously?
Yes. Try MATLAB timer object. <http://www.mathworks.com/help/matlab/ref/timer.html?searchHighlight=timer MATLAB timer>

12년 초과 전 | 1

| 수락됨

답변 있음
how to combine values into one cell in a matrix within a matrix
If you are on MATLAB v13a or later you can try size(s) %put your 11x2 cell here cellJoinedAsString = strjoin(s)

12년 초과 전 | 0

답변 있음
Find distance between to elements of a "circular" vector
Assuming your list is unique you can get the linear positions of two numbers as, p1 = find( v == n1 ) p2 = find( v == n2...

12년 초과 전 | 1

답변 있음
Hello everyone, I have a matlab problem and I don't know how to go about it.The question goes thus: Using a matlab code prove that for discrete time sinusoids whose frequencies are seperated by an integer multiple of 2*pi are identical. Pleas
Usually forum members don't provide canned homework solutions. You have a better chance to receive help when you show your work....

12년 초과 전 | 0

답변 있음
How to run two for loops
To do it the way you want, not my preference, you should write a double loop, and compute the index into the cell array *h* F...

12년 초과 전 | 1

| 수락됨

답변 있음
Find locations of repeated values?
Guessing from reading the code, and the comments in the code itself, you are looking for the variable, *startindex* [starti...

12년 초과 전 | 0

답변 있음
eigenvalues - determining the three major eigenvalues from a matrix
Take a look at the >> doc eigs >> doc eig as @Jan Simon has suggested. For example with <http://www.mathworks.com/he...

12년 초과 전 | 0

| 수락됨

답변 있음
search and delete text lines when certain strings are missing
Have you tried *regexp* ? <http://www.mathworks.com/help/matlab/ref/regexp.html?searchHighlight=regexp regexp> My recommenda...

12년 초과 전 | 0

답변 있음
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...

12년 초과 전 | 0

답변 있음
Compiled MATLAB with TORQUE
You may alternatively consider writing a "monitor" thread or app using the MATLAB timer() functionality. See <http://www.math...

12년 초과 전 | 0

답변 있음
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() ...

12년 초과 전 | 0

답변 있음
array of interpolant created with csape
Looks like MATLAB function csape needs a first argument as a function handle!

12년 초과 전 | 0

답변 있음
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...

12년 초과 전 | 0

답변 있음
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...

12년 초과 전 | 0

답변 있음
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. ...

12년 초과 전 | 1

| 수락됨

답변 있음
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...

12년 초과 전 | 0

| 수락됨

답변 있음
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...

12년 초과 전 | 0

답변 있음
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...

12년 초과 전 | 0

답변 있음
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...

12년 초과 전 | 0

답변 있음
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 ...

12년 초과 전 | 1

| 수락됨

답변 있음
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...

12년 초과 전 | 0

답변 있음
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 ...

12년 초과 전 | 0

답변 있음
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...

12년 초과 전 | 0

더 보기