Answered

sum of values in column wise

<http://www.mathworks.com/help/techdoc/ref/sum.html> B = sum(A,dim) sums along the dimension of A specified by scalar dim. Th...

sum of values in column wise

<http://www.mathworks.com/help/techdoc/ref/sum.html> B = sum(A,dim) sums along the dimension of A specified by scalar dim. Th...

9 years ago | 7

Answered

Organizing Messy Notepad data

For general cases, Jason's response is probably the way to go. But if the information is delimited, you can try <http://www.m...

Organizing Messy Notepad data

For general cases, Jason's response is probably the way to go. But if the information is delimited, you can try <http://www.m...

9 years ago | 1

Answered

Replacing elements in Array

When length(C) > 1 , Matlab doesn't know how to replace the values. (length(C) x 61) matrix , and a length(C) vector If...

Replacing elements in Array

When length(C) > 1 , Matlab doesn't know how to replace the values. (length(C) x 61) matrix , and a length(C) vector If...

9 years ago | 0

Answered

enable log signals through command line.

I remember doing this before, but I can't find the code. I had to : 1) find the block 2) get the line (out of the block) 3) ...

enable log signals through command line.

I remember doing this before, but I can't find the code. I had to : 1) find the block 2) get the line (out of the block) 3) ...

9 years ago | 0

| accepted

Answered

Extract numbers from mixed string

This is how I went about it, all steps included even the errors. teststr = 'Test setup: MaxDistance = 60 m, Rate = 1.000, P...

Extract numbers from mixed string

This is how I went about it, all steps included even the errors. teststr = 'Test setup: MaxDistance = 60 m, Rate = 1.000, P...

9 years ago | 1

Answered

Control a Simulink module by an M-file

So you want to run the simulation, and have 'z' change from 100 to 10 at 3 seconds? Is 'z' a constant block? Change it to a Loo...

Control a Simulink module by an M-file

So you want to run the simulation, and have 'z' change from 100 to 10 at 3 seconds? Is 'z' a constant block? Change it to a Loo...

9 years ago | 0

Answered

How to/Can I send commands to Matlab remotely

What is it that you want to do remotely? If you want total control of Matlab, then just VNC. If you want to run a script, my...

How to/Can I send commands to Matlab remotely

What is it that you want to do remotely? If you want total control of Matlab, then just VNC. If you want to run a script, my...

9 years ago | 1

Answered

Code of plotting from SCOPE three axis to sublots

<http://www.mathworks.com/matlabcentral/fileexchange/35297-matlab-plot-gallery-subplot-1/content/html/Subplot_1.html>

Code of plotting from SCOPE three axis to sublots

<http://www.mathworks.com/matlabcentral/fileexchange/35297-matlab-plot-gallery-subplot-1/content/html/Subplot_1.html>

9 years ago | 0

Answered

Simulink "To Workspace" is outputing 3D array, why?

Not really an answer, but I get this as well, what works for me is to squeeze the output: <http://www.mathworks.com/help/techdo...

Simulink "To Workspace" is outputing 3D array, why?

Not really an answer, but I get this as well, what works for me is to squeeze the output: <http://www.mathworks.com/help/techdo...

9 years ago | 1

Answered

Extracting data from a table(.mat file)

<http://www.mathworks.com/company/newsletters/articles/Matrix-Indexing-in-MATLAB/matrix.html> original = magic(10); In t...

Extracting data from a table(.mat file)

<http://www.mathworks.com/company/newsletters/articles/Matrix-Indexing-in-MATLAB/matrix.html> original = magic(10); In t...

9 years ago | 0

Answered

How to save the plot with two lines

The 'plot' is the line, what you want to save is the figure. h=figure; x=rand(1,10); y=1:10; plot(x,y,'r',x,y,'g')...

How to save the plot with two lines

The 'plot' is the line, what you want to save is the figure. h=figure; x=rand(1,10); y=1:10; plot(x,y,'r',x,y,'g')...

9 years ago | 0

| accepted

Answered

Using electronic sensors to control motors using matlab/simulink; possible?

<http://blogs.mathworks.com/seth/2012/02/21/sous-vide-cooking-with-simulink-part-1/> <http://blogs.mathworks.com/seth/2012/02/2...

Using electronic sensors to control motors using matlab/simulink; possible?

<http://blogs.mathworks.com/seth/2012/02/21/sous-vide-cooking-with-simulink-part-1/> <http://blogs.mathworks.com/seth/2012/02/2...

9 years ago | 1

| accepted

Answered

Is there any examples that uses Wait.m?

I'm not sure what you mean by "content of the loop unable to keep up with the frequency of the loop itself". However, you menti...

Is there any examples that uses Wait.m?

I'm not sure what you mean by "content of the loop unable to keep up with the frequency of the loop itself". However, you menti...

9 years ago | 0

| accepted

Answered

Search within a character array

I would guess <http://www.mathworks.com/help/techdoc/ref/urlread.html> and creative use of <http://www.mathworks.com/help/tec...

Search within a character array

I would guess <http://www.mathworks.com/help/techdoc/ref/urlread.html> and creative use of <http://www.mathworks.com/help/tec...

9 years ago | 0

| accepted

Answered

Simulink / xPC automatically generated files

When I'm working with models, I will usually have a LOAD.m file that modifies the addpath. Then put files in selected folders. I...

Simulink / xPC automatically generated files

When I'm working with models, I will usually have a LOAD.m file that modifies the addpath. Then put files in selected folders. I...

9 years ago | 0

| accepted

Answered

Is code formatting still too complicated

For my transition, it had a lot to do with figuring out that you need to put things not only on different lines but to also add ...

Is code formatting still too complicated

For my transition, it had a lot to do with figuring out that you need to put things not only on different lines but to also add ...

9 years ago | 1

| accepted

Answered

I need to find out what this program is missing

while [condition] %that should only be true to run the loop %stuff in loop end % make sure to end the loop, but shoul...

I need to find out what this program is missing

while [condition] %that should only be true to run the loop %stuff in loop end % make sure to end the loop, but shoul...

9 years ago | 0

| accepted

Answered

update/memorise the constant block value

Perhaps I may need more clarification, but this is my understanding. You currently have 2 [Constant] blocks, for 'Ref Point' an...

update/memorise the constant block value

Perhaps I may need more clarification, but this is my understanding. You currently have 2 [Constant] blocks, for 'Ref Point' an...

9 years ago | 0

Answered

Detecting a particular word in a cell vector

I would use a regexp. <http://www.mathworks.com/help/techdoc/ref/regexp.html> Perhaps with a 'match' option, depending what ...

Detecting a particular word in a cell vector

I would use a regexp. <http://www.mathworks.com/help/techdoc/ref/regexp.html> Perhaps with a 'match' option, depending what ...

9 years ago | 0

Answered

Data logging from simulink. It only stores a few values

For only recording the last few points, did you change the option for 'Limit data points to last XX'? With your time step size, ...

Data logging from simulink. It only stores a few values

For only recording the last few points, did you change the option for 'Limit data points to last XX'? With your time step size, ...

9 years ago | 0

Answered

mex -setup does not see a C++ compiler

If you know the path to the compiler, you can say [no] to locate installed compilers and manually give the path.

mex -setup does not see a C++ compiler

If you know the path to the compiler, you can say [no] to locate installed compilers and manually give the path.

9 years ago | 0

Answered

How to do probalistic routing in Simulink/Simevents?

Have you tried a Random Number block, with a switch.

How to do probalistic routing in Simulink/Simevents?

Have you tried a Random Number block, with a switch.

9 years ago | 1

Answered

Can I search a text file for a particluar word before recording data?

Look for a specific keyword(s), not exactly sure about your example, perhaps something like this. Keyword = 'Object Ray...

Can I search a text file for a particluar word before recording data?

Look for a specific keyword(s), not exactly sure about your example, perhaps something like this. Keyword = 'Object Ray...

9 years ago | 1

| accepted

Answered

how to save a string as a filename?

for i=1:2; save(['test_' num2str(i)]); end

how to save a string as a filename?

for i=1:2; save(['test_' num2str(i)]); end

9 years ago | 0

Solved

Implement simple rotation cypher

If given a letter from the set: [abc...xyz] and a shift, implement a shift cypher. Example: 'abc' with a shi...

9 years ago

Solved

Make a run-length companion vector

Given a vector x, return a vector r that indicates the run length of any value in x. Each element in r shows how many times the ...

9 years ago

Solved

Given a window, how many subsets of a vector sum positive

Given a vector: [1 0 -1 3 2 -3 1] and a window of 2, A sliding window would find: 1 + 0 = 1 0 - 1 = -1 ...

9 years ago

Solved

Spot the outlier

All points except for one lie on a line. Which one is the outlier? Example: You are given a list of x-y pairs in a column ...

9 years ago

Solved

Flag largest magnitude swings as they occur

You have a phenomenon that produces strictly positive or negative results. delta = [1 -3 4 2 -1 6 -2 -7]; Marching thr...

9 years ago

Answered

run a program every minute

<http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/>

run a program every minute

<http://blogs.mathworks.com/videos/2008/05/05/advanced-matlab-timer-objects/>

9 years ago | 5

| accepted