Risposto
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...

oltre 12 anni fa | 0

Risolto


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 ...

oltre 12 anni fa

Risposto
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...

oltre 12 anni fa | 1

Risposto
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...

oltre 12 anni fa | 0

Risposto
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...

oltre 12 anni fa | 0

Risposto
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...

oltre 12 anni fa | 0

| accettato

Risposto
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...

oltre 12 anni fa | 0

| accettato

Risposto
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>

oltre 12 anni fa | 1

| accettato

Risposto
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)

oltre 12 anni fa | 0

Risposto
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...

oltre 12 anni fa | 1

Risposto
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....

oltre 12 anni fa | 0

Risposto
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...

oltre 12 anni fa | 1

| accettato

Risposto
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...

oltre 12 anni fa | 0

Risposto
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...

oltre 12 anni fa | 0

| accettato

Risposto
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...

oltre 12 anni fa | 0

Risposto
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...

oltre 12 anni fa | 0

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

oltre 12 anni fa | 0

Risposto
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() ...

oltre 12 anni fa | 0

Risposto
array of interpolant created with csape
Looks like MATLAB function csape needs a first argument as a function handle!

oltre 12 anni fa | 0

Risposto
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...

oltre 12 anni fa | 0

Risposto
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. ...

oltre 12 anni fa | 1

| accettato

Risposto
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...

oltre 12 anni fa | 0

| accettato

Risposto
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...

oltre 12 anni fa | 0

Risposto
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...

oltre 12 anni fa | 0

Risposto
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...

oltre 12 anni fa | 0

Risposto
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 ...

oltre 12 anni fa | 1

| accettato

Risposto
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...

oltre 12 anni fa | 0

Risposto
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 ...

oltre 12 anni fa | 0

Risposto
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...

oltre 12 anni fa | 0

Carica altro