Réponse apportée
If I have a matrix of data and I want to pull out certain data cells and arrange them in another matrix?
a=[10 40 50 80 20 40 20 34 30 50 32 50 20 38 40 36] c=find(a(:,1)==20) out= a(c,3)

environ 14 ans il y a | 2

| A accepté

Réponse apportée
I keep getting a syntax error with my program???
in the If statement you need to use '==' Your first if statement would be if x==0 & y==0 disp('This point is located...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
Inserting date/time in an array
Well here is the code start={'01.04.1987 14:00:00'}; start1={'01.04.1987 14:00:01'}; % you can put your end valu...

environ 14 ans il y a | 2

Réponse apportée
When to accept an answer for someone
How about Do not accept your own answer unless 1. The author has thanked you replied that the problem has been solved ...

environ 14 ans il y a | 8

Réponse apportée
Cell
<http://www.mathworks.com/help/techdoc/ref/cell.html>

environ 14 ans il y a | 2

Réponse apportée
vector index of consecutive gap (NaN) lengths?
A very crude way.. pretty sure can be done better... A = [2 4 NaN 7 9 NaN NaN NaN 32 NaN NaN 8]; A(~isnan(A))=0; A(is...

environ 14 ans il y a | 0

Réponse apportée
SYNTAX MATLAB
Eg. x=1:20; %i.e x=1 2 3.... 20 n=5; % assign value of 5 to n y1 = x(2:n) % get second to nth (5th )value in ...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
Create a startpoint in form of a ring on my graph
try a=[1 2 3 4]; %data to be plotted plot(a) hold on plot(a(1),'o','MarkerSize',10) % start point with circ...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
Force matlab to quit while stuck in an infinite loop?
try ctrl + c

environ 14 ans il y a | 14

| A accepté

Réponse apportée
Divide by Zero
Actually Inf returns the IEEE arithmetic representation for positive infinity. Infinity results from operations like division...

environ 14 ans il y a | 8

| A accepté

Réponse apportée
How do I find the GPU version in MATLAB?
Use the function <http://www.mathworks.com/help/toolbox/distcomp/gpudevice.html gpuDevice>. gpuDevice If you do not have ...

environ 14 ans il y a | 3

| A accepté

Réponse apportée
Finding distance between endpoints of image segment: PixelList vs 'endpoints'
You could lockup the Medical Image processing webinar which deals with toruosity.. You could also try bwdistgeodesic command...

environ 14 ans il y a | 1

Réponse apportée
How to connect the dots
Dunno if this is what you want.. DO realize that var(x) is a single scalar value as the variance of x x=rand(10,1) y=...

environ 14 ans il y a | 1

Réponse apportée
Calculate difference between two times
You can convert the date string into a date number and get the difference between them EG. a =['20080102 095648';'200801...

environ 14 ans il y a | 2

Réponse apportée
Convert 3 dimensional matrix to vector (rows to columns)
doc reshape out = reshape(PV_power_output,8760,1,3); Warning: read the reshape help document thoroughly as it does c...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
Regarding solving an equation
try the equation as syms x phi = solve(R1*x + 0.033165331*x^0.8 -delTt) %without '...' phi1 = real(phi)

environ 14 ans il y a | 0

Réponse apportée
breaking a column of strings in two different columns
a={'AR021108' 'AW301108' 'EW281208' 'RT250109' 'RY220209'}; ii=cellfun(@(x) x(1:2),a, 'UniformOutput', false); ...

environ 14 ans il y a | 2

Réponse apportée
loop
You could try something like ii=0.4:0.01:0.99; for count1 =1:length(ii) for count2=1:length(ii) outpu...

environ 14 ans il y a | 0

Réponse apportée
How to combine vectors of different length into matrix ?
Just for fun.. Another complicated way.. A =[ 1 2 3 4 5]; B = [3 4 5 0 0; 1 2 4 5 0; 4 5 0 0 0]; for ii=1:size(B,...

environ 14 ans il y a | 0

Réponse apportée
Change License Type
You could try updating the current license fro the MATLAB Help tab. HELP > Licensing > Update current license P.S. You mi...

environ 14 ans il y a | 0

Réponse apportée
I want to ascend cell
There might be an easier way of doing this but the following should work.. a{1,1}={'x 4';'y 2';'z 1';'g 3'}; a{1,1} p...

environ 14 ans il y a | 1

| A accepté

Réponse apportée
Beagleboard question
You can definitely interface an Beagleboard-xM with Simulink and MATLAB not sure about the older version. The new xM board only...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
How to config "sendmail" to BCC to multiple addresses?
Look for addBcc on the following page as part of the file exchange contribution: <http://www.mathworks.com/matlabcentral/file...

environ 14 ans il y a | 0

Réponse apportée
unable to set path for a particular tool.
Try the following from the matlab command line which pathdef This will reply the path of the pathdef.m file make sur...

environ 14 ans il y a | 0

Réponse apportée
giving state-space equation from transfer function G(s)
>> H = [tf([2],[1 4 1])] H = 2 ------------- s^2 + 4 s + 1 Continuous-time transfer ...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
Derivate a signal in matlab
this might help <http://autarkaw.wordpress.com/2009/03/21/how-do-i-differentiate-in-matlab/> doc diff

environ 14 ans il y a | 0

Réponse apportée
sorting
A = 'abc' 'dmf' 'jkl' [1x3 double] [1x3 double] [1x3 double] 'pqr' 'abc' 'jkl' [1x3 dou...

environ 14 ans il y a | 2

Réponse apportée
Extract a range of a given cell array
cellarray={'A','B','C','D','E','F','G','H','I','J','K','L'}; prompt1={'Insert start in %'}; prompt2={'Insert End in ...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
How to write a "go to" -like statement in matlab
I dont think there is 'goto' in MATLAB you could use try .. catch or use the file exchange contribution <http://ww...

environ 14 ans il y a | 1

| A accepté

Réponse apportée
Is a Bloomberg license needed for the financial datafeed toolbox?
Google does provide every second data, as opposed to Bloomberg which is delayed by 15 mins. without the license.

environ 14 ans il y a | 0

Charger plus