Answered

Need help solving second order differential equations using ODE45

The initial conditions imply that t=0, so you simply need to pass in the two initial conditions for x and dx/dt. So for your exa...

Need help solving second order differential equations using ODE45

The initial conditions imply that t=0, so you simply need to pass in the two initial conditions for x and dx/dt. So for your exa...

12 years ago | 0

| accepted

Answered

Pop up menu

Value = 2; set(handles.popupmenu, 'Value', Value); |'Value'| refers to the "Value" property of the pop up menu. The seco...

Pop up menu

Value = 2; set(handles.popupmenu, 'Value', Value); |'Value'| refers to the "Value" property of the pop up menu. The seco...

12 years ago | 1

| accepted

Answered

Warning "Unable to interpret LaTeX string ..."

In case you didn't know, you could suppress certain warnings, like this: warnState = warning('off', 'MATLAB:gui:latexsup:Ba...

Warning "Unable to interpret LaTeX string ..."

In case you didn't know, you could suppress certain warnings, like this: warnState = warning('off', 'MATLAB:gui:latexsup:Ba...

12 years ago | 0

Answered

Using gcf in functions

<http://www.mathworks.com/help/matlab/ref/gcf.html |gcf|> is not a variable, but rather a function. So you don't need to treat i...

Using gcf in functions

<http://www.mathworks.com/help/matlab/ref/gcf.html |gcf|> is not a variable, but rather a function. So you don't need to treat i...

12 years ago | 3

Answered

How to find all XY Graphs in Simulink model

As you can see from the FRP for <http://www.mathworks.com/help/toolbox/simulink/slref/find_system.html |find_system|>, you can s...

How to find all XY Graphs in Simulink model

As you can see from the FRP for <http://www.mathworks.com/help/toolbox/simulink/slref/find_system.html |find_system|>, you can s...

12 years ago | 1

| accepted

Answered

Fastest way to dot product all columns of two matricies of same size

When you say you're doing the dot product, I assume you're doing this: v1'*v2 and not dot(v1, v2) The equivalent...

Fastest way to dot product all columns of two matricies of same size

When you say you're doing the dot product, I assume you're doing this: v1'*v2 and not dot(v1, v2) The equivalent...

12 years ago | 0

Answered

File modification alert from windows api

You may be able to use the .NET interface, using the <http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx F...

File modification alert from windows api

You may be able to use the .NET interface, using the <http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx F...

12 years ago | 2

| accepted

Answered

How do I activate Simulink with R2011a Student Version?

Where are you looking for the icon? There will be no separate Simulink icon in your OS desktop. You start Simulink by starting M...

How do I activate Simulink with R2011a Student Version?

Where are you looking for the icon? There will be no separate Simulink icon in your OS desktop. You start Simulink by starting M...

12 years ago | 0

Answered

creating a single structure with 100 entries

You don't need to create a structure for that. You can do this: C2 = cat(3, C{:}); avg = mean(C2, 3) FYI, to answer y...

creating a single structure with 100 entries

You don't need to create a structure for that. You can do this: C2 = cat(3, C{:}); avg = mean(C2, 3) FYI, to answer y...

12 years ago | 1

| accepted

Answered

How do I delete a field variable from a structure

|handles.Data| is a field of variable |handles|. To delete a field, handles = rmfield(handles. 'Data'); To set the field...

How do I delete a field variable from a structure

|handles.Data| is a field of variable |handles|. To delete a field, handles = rmfield(handles. 'Data'); To set the field...

12 years ago | 4

| accepted

Answered

problem acquiring the video from webcam

Put a breakpoint on line 4 of your function |getCameraInfo|, and explore your variable |camera_info|. Maybe your laptop isn't re...

problem acquiring the video from webcam

Put a breakpoint on line 4 of your function |getCameraInfo|, and explore your variable |camera_info|. Maybe your laptop isn't re...

12 years ago | 0

Answered

"if "function

You can use the <http://www.mathworks.com/help/matlab/ref/isstrprop.html |isstrprop|> function. If |answer| is the input you got...

"if "function

You can use the <http://www.mathworks.com/help/matlab/ref/isstrprop.html |isstrprop|> function. If |answer| is the input you got...

12 years ago | 1

| accepted

Answered

Refining the step size in colorbar

The colorbar step size is determined by the colormap of the figure. For example: colormap(jet(16)) colorbar

Refining the step size in colorbar

The colorbar step size is determined by the colormap of the figure. For example: colormap(jet(16)) colorbar

12 years ago | 0

Answered

Separating the channels of a .wav sound file

If the .wav file is a stereo audio file, then <http://www.mathworks.com/help/techdoc/ref/wavread.html |wavread|> can read them i...

Separating the channels of a .wav sound file

If the .wav file is a stereo audio file, then <http://www.mathworks.com/help/techdoc/ref/wavread.html |wavread|> can read them i...

12 years ago | 1

| accepted

Answered

Memory

That's the theoretical limit that MATLAB can access on your 64-bit system, which is independent of how much RAM and Swap you hav...

Memory

That's the theoretical limit that MATLAB can access on your 64-bit system, which is independent of how much RAM and Swap you hav...

12 years ago | 1

Answered

Last non nan observation

I'm not sure if you're looking for the indices (row number) or the actual value of the last non nan observation. So here are bot...

Last non nan observation

I'm not sure if you're looking for the indices (row number) or the actual value of the last non nan observation. So here are bot...

12 years ago | 4

| accepted

Answered

Why use x=load('myFile.mat')?

You may actually get an incorrect answer in certain situations. For example, create a MAT file, myFile.mat, that has a variab...

Why use x=load('myFile.mat')?

You may actually get an incorrect answer in certain situations. For example, create a MAT file, myFile.mat, that has a variab...

12 years ago | 5

| accepted

Answered

Coloring scatterplots based on frequency of point occurrence in input

*EDIT: |unique| instead of |sort|* You should be able to do it with: |unique| (use the 'rows' parameter) |hist| (use th...

Coloring scatterplots based on frequency of point occurrence in input

*EDIT: |unique| instead of |sort|* You should be able to do it with: |unique| (use the 'rows' parameter) |hist| (use th...

12 years ago | 4

| accepted

Answered

Plot using scatter3 function.

Is this what you're looking for? x = rand(1,24); y = rand(1,24); z = rand(1,24); sz = 40; colors = jet(24); ...

Plot using scatter3 function.

Is this what you're looking for? x = rand(1,24); y = rand(1,24); z = rand(1,24); sz = 40; colors = jet(24); ...

12 years ago | 1

Answered

What does a Distributed Computing Server license of 16 workers mean?

A "worker" is a MATLAB process that runs. Typically, you can think of each worker running on a physical core. If a node has mult...

What does a Distributed Computing Server license of 16 workers mean?

A "worker" is a MATLAB process that runs. Typically, you can think of each worker running on a physical core. If a node has mult...

13 years ago | 2

Answered

Force plate zero offset

Typically, you would do a reference measurement (with no load on the force plate). Take that measurement and compute the average...

Force plate zero offset

Typically, you would do a reference measurement (with no load on the force plate). Take that measurement and compute the average...

13 years ago | 1

| accepted

Answered

subdivide the axis into a grid without using subplot

Why don't you simply keep creating the patch object in a loop, without creating multiple axes. As long as the coordinates of the...

subdivide the axis into a grid without using subplot

Why don't you simply keep creating the patch object in a loop, without creating multiple axes. As long as the coordinates of the...

13 years ago | 0

Answered

Use of "Break" in switch statement

What do you mean by "if the switch statement is fulfilled"? Are you trying to get out of the whole switch-case block while you a...

Use of "Break" in switch statement

What do you mean by "if the switch statement is fulfilled"? Are you trying to get out of the whole switch-case block while you a...

13 years ago | 0

Answered

in wat order multiple images will be read and store in workspce?

That depends on how you read it in. You can't read all 10 images with a single <http://www.mathworks.com/help/matlab/ref/imread....

in wat order multiple images will be read and store in workspce?

That depends on how you read it in. You can't read all 10 images with a single <http://www.mathworks.com/help/matlab/ref/imread....

13 years ago | 0

Answered

Evaluate symbolic matrix numerically.

Use <http://www.mathworks.com/help/toolbox/symbolic/subs.html |subs|>: subs(matrix, {A, B}, {0.5, 1})

Evaluate symbolic matrix numerically.

Use <http://www.mathworks.com/help/toolbox/symbolic/subs.html |subs|>: subs(matrix, {A, B}, {0.5, 1})

13 years ago | 4

Answered

parfor with very different computation times

Normally, <http://www.mathworks.com/access/helpdesk/help/toolbox/distcomp/parfor.html |parfor|> does load balancing. |parfor| br...

parfor with very different computation times

Normally, <http://www.mathworks.com/access/helpdesk/help/toolbox/distcomp/parfor.html |parfor|> does load balancing. |parfor| br...

13 years ago | 3

Answered

Problem with matlab not finding compilers using "mex -setup"

Could it be because Microsoft Visual 2010 Express was not officially supported in R2008b version of MATLAB? Here's the supported...

Problem with matlab not finding compilers using "mex -setup"

Could it be because Microsoft Visual 2010 Express was not officially supported in R2008b version of MATLAB? Here's the supported...

13 years ago | 0

Answered

Simple, compiled "Hello, World" function takes 3 seconds to execute? Why so slow?

Kaustubha's explanation about MATLAB Compiler Runtime (MCR) is correct. The runtime is essentially MATLAB (without the desktop a...

Simple, compiled "Hello, World" function takes 3 seconds to execute? Why so slow?

Kaustubha's explanation about MATLAB Compiler Runtime (MCR) is correct. The runtime is essentially MATLAB (without the desktop a...

13 years ago | 1

Answered

Plot Legend

If you look at the documentation for <http://www.mathworks.com/help/matlab/ref/legend.html |legend|>, there's a syntax where you...

Plot Legend

If you look at the documentation for <http://www.mathworks.com/help/matlab/ref/legend.html |legend|>, there's a syntax where you...

13 years ago | 2

| accepted

Answered

Handling large AVI videos

You say you need to analyze the video "frame-by-frame". That seems to indicate that you don't need to store all of the frames in...

Handling large AVI videos

You say you need to analyze the video "frame-by-frame". That seems to indicate that you don't need to store all of the frames in...

13 years ago | 1