Solved


Find the position of first minimum value in an integer array with numbers
If x = [2 6 4 9 10 3 1 5 1] the the output should be 7, because the first minimum value (1) lies at the 7th position.

12 years ago

Answered
how to read data from wordpad and use the data to do the question
There's an example in the <http://www.mathworks.com/help/releases/R2013b/matlab/ref/fgetl.html doc for |fgetl|>

12 years ago | 0

Answered
Which version of Perl is built into MATLAB? perl.m
From looking inside of |perl|, i.e. |edit perl| On Windows, MATLAB uses its own Perl interpreter and this is located here (13...

12 years ago | 0

Answered
Problem with for-loop and trapz
You need to |subs|-stitute the values in for sigma: syms a b sigma y; m = 10; for a = 1:1:m for b = 1:1:m y =...

12 years ago | 0

Answered
Supress Command Line messages: system.m
Either capture the outputs: [st,rt] = system('copy 1.txt+2.txt+3.txt MyBigFat.txt'); Or if that does not supress it, the...

12 years ago | 0

| accepted

Solved


surface of a spherical planet
you just discovered its circumference, that is the input.

12 years ago

Solved


click away
Write a function that clicks on a GUI button. *Description*: Some times one wishes to use Matlab to automate some time con...

12 years ago

Answered
how to find max neighbour pixel in a 8-cordinated window?
Extract the neighborhood into its own variable and set the middle value to |-inf|

12 years ago | 0

Answered
using the while loop function
You're close! Inside the loop you say: n-1 This just does the computation but does not assign this value back to n. ...

12 years ago | 1

| accepted

Answered
How do I publish my question with the frenet function?
which -all frenet _'frenet' not found._ On a full product install. You need to make sure that |frenet.m| is on the pat...

12 years ago | 0

Answered
Interpolation and gps data
doc interp1 |interp1| will do this for you.

12 years ago | 0

Answered
Accelerate nested bsxfun double loop?
Usually two dimensional: bsxfun(@times Can be replaced with matrix multiplication: SZC = b'*a; isequal(SZC,SZI) a...

12 years ago | 0

Answered
How to convert all elements of a cell array to one string matrix.
A = {'Steve';'wonder';'Marcus';'Jacob'}; B = strjoin(strcat(cellstr(num2str((1:numel(A)).')),'-',A).',' ') 13a or newer f...

12 years ago | 0

| accepted

Answered
Sum of squares profiling on GPU
You might be interested in |gputimeit|, new in R2013b: <http://www.mathworks.com/help/releases/R2013b/distcomp/gputimeit.html...

12 years ago | 2

Answered
Slow screen reaction matlab GUI
The editor is sluggish because of the various background processes. One of these is the Code Analyzer, so the first thing you c...

12 years ago | 0

Answered
2D slice of a 3D volume!(arbitrary plane-slice function)
There are many: <http://www.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&term=slice+volume FEX:query:slice+v...

12 years ago | 0

Answered
MATLAB 2006B is compatible with windows 7 (32 bit/64bit) or not?
No. <http://www.mathworks.com/support/sysreq/release2006b/index.html>

12 years ago | 1

Answered
Error using imfilter: imfilter_mex.mexw64
It sounds like your path has been been corrupted. Please run the following commands to restore it: restoredefaultpath; re...

12 years ago | 1

| accepted

Answered
diff gives back one less valor
From the <http://www.mathworks.com/help/releases/R2013b/matlab/ref/diff.html doc for diff> If X is a vector of length m, th...

12 years ago | 0

| accepted

Answered
How do I add space between strings when I am using randperm?
You could also do this with |strjoin| (13a or newer) string = ['BCDFGHKJLMNPQRSTVWXYZ']; numRands = length(string); ...

12 years ago | 0

Answered
MATLAB executable code generator error
You can't generate code for graphics since this is java... <http://www.mathworks.com/help/releases/R2013b/coder/ug/matlab-lan...

12 years ago | 1

| accepted

Answered
Images don't show with imshow after converting them to double.
You could also just show it over the full range by using the [] input to imshow: imshow(I,[])

12 years ago | 3

Answered
How to find the Direction (angle) of Points on an Edge in a Digital Image
Randima, you're in luck. I've been working on a tool for this and I finally polished it on the plane last week. BW = your_...

12 years ago | 1

| accepted

Answered
Detect change between two values in an array
x = [1 1 2 3 4 4 5 6 6 6 6 7]; diff(x)==0 %?

12 years ago | 0

| accepted

Answered
How do I subtract variable dimension arrays
Use |diff| specifying the dimension: dists = rand(100,4,23); drow = diff(dists,1,1); %rows first dimension dcol = diff(...

12 years ago | 0

| accepted

Answered
I am trying to draw a tennis court with a green court and white lines
bgc = [0.85 0.85 0.85]; %backgroundcolor figure('color',bgc); axes('color',bgc,'XColor',bgc,'YColor',bgc,'ZColor',bgc); pat...

12 years ago | 0

Answered
Parallel execution for Lasso
<http://www.mathworks.com/help/releases/R2013b/stats/lasso.html doc lasso> Look at the _'UseParallel'_ option in _'options'_....

12 years ago | 0

Answered
no speed improvement using 'parfor'
What release are you using? If you are using a release before R2013b, did you start a |matlabpool|? matlabpool open %open...

12 years ago | 0

Answered
Fill NaNs in array with last value
You still have to figure out what to do if the first value is nan. v = [321 nan() nan() nan() nan() 55 nan() nan() nan() 22...

12 years ago | 7

| accepted

Load more