Resuelto


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.

casi 13 años hace

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

casi 13 años hace | 0

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

casi 13 años hace | 0

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

casi 13 años hace | 0

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

casi 13 años hace | 0

| aceptada

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

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

casi 13 años hace | 0

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

casi 13 años hace | 1

| aceptada

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

casi 13 años hace | 0

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

casi 13 años hace | 0

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

casi 13 años hace | 0

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

casi 13 años hace | 0

| aceptada

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

casi 13 años hace | 2

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

casi 13 años hace | 0

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

casi 13 años hace | 0

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

casi 13 años hace | 1

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

casi 13 años hace | 1

| aceptada

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

casi 13 años hace | 0

| aceptada

Respondida
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); ...

casi 13 años hace | 0

Respondida
Problem in rotation detection for the angles less than 1 degree using Fourier-mellin transform
Have you tried using |imregister|?

casi 13 años hace | 0

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

casi 13 años hace | 1

| aceptada

Respondida
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,[])

casi 13 años hace | 3

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

casi 13 años hace | 1

| aceptada

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

casi 13 años hace | 0

| aceptada

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

casi 13 años hace | 0

| aceptada

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

casi 13 años hace | 0

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

casi 13 años hace | 0

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

casi 13 años hace | 0

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

casi 13 años hace | 7

| aceptada

Cargar más