photo

IBM watson


Aktiv seit 2018

Followers: 0   Following: 0

Statistik

MATLAB Answers

25 Fragen
0 Antworten

RANG
28.682
of 300.352

REPUTATION
1

BEITRÄGE
25 Fragen
0 Antworten

ANTWORTZUSTIMMUNG
96.0%

ERHALTENE STIMMEN
1

RANG
 of 20.928

REPUTATION
N/A

DURCHSCHNITTLICHE BEWERTUNG
0.00

BEITRÄGE
0 Dateien

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANG

of 168.212

BEITRÄGE
0 Probleme
0 Lösungen

PUNKTESTAND
0

ANZAHL DER ABZEICHEN
0

BEITRÄGE
0 Beiträge

BEITRÄGE
0 Öffentlich Kanäle

DURCHSCHNITTLICHE BEWERTUNG

BEITRÄGE
0 Highlights

DURCHSCHNITTLICHE ANZAHL DER LIKES

  • Thankful Level 4

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


Finding the index of spesific element in a matrix?
Lets say we have matrix: a=[ 2, 3, 5 3, 4, 7 4, 4, 4] ; I want to know index of a(4) which is the bold 3. Th...

mehr als 6 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to find out whether there is a repetitive element in the columns of a matrix?
example: a=[ 1 2 3 4 2 1 1 4 2] Bold ones are that what I am looking for. There is no need for imformation abou...

mehr als 6 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Does using cells cause dramatically slow down the code?
Does using cells instead of matrixes make big difference?

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Couldn't find what's wrong
a=cell(1,3) a{2}= [2 4 5] for i=1:3 if numel(a{i})==3 b=cellfun(@(q) q==a(i),a,'un',1) end end I trie...

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


What does 'un' mean here ?
[a1,b,c] = unique(cellfun(@char,a,'un',0)) I read the cellfun page but didn't find anything about this.

mehr als 6 Jahre vor | 1 Antwort | 1

1

Antwort

Frage


How to use 'setdiff' func. on cells
a and b are cells and I want to do this: setdiff(a,b);

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Is there a way to start indexing with 0 in MATLAB?
a=[4 2 5 2] can I make this happen? a(0)=4

fast 7 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


Why is this not working? And how to fix?
When i run this code, I get an error message about x1. syms x1 x2 c1 c2 c3 eq1= c1-c3==0; eq2= c2-c3==0; eq3= c1+c2+c3==1; ...

fast 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to store vectores which have different lengts? (in a loop)
This doesnt work because every tupple have differents lengths : for i=2:5 ar(i,:)=ones(1,q(i)-q(i-1)+2); end q is a...

fast 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to say this in MATLAB language?
I want to say a plus b equals to 10 math exuation: a+b=10 how write this in matlab?

fast 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Pattern search algorithm inMATLAB ?
Can i use this Matlab function: x = patternsearch(fun,x0,A,b,Aeq,beq,lb,ub) to solve something like this:

fast 7 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Where is the zero?
How to find the location of a zero (or a different number) in a vector ? like : a=[ 1 3 5 6 34 4 0 1 3 4 50] =...

fast 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to write a fucntion which we don't know how many "in" values will be needed?
I want to know how to write first line of a function which we cant tell how many variables will be "inputed". example : f...

fast 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to do division on matrices ?
[a b; c d]*[x;y]=[k;l] How can i calculate x and y if I know a,b,c,d and k,l ?

fast 7 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Extracting zeros from vectors
I need to extract zeros from a vector while keeping the same order of elements in s. Like this : S=[1 0 0 2 3 0 0 0 2 1 0...

etwa 7 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Could someone explain how this code works?
S=[1 3 0 2 0 0]; C=[0 2]; [~,col] = ismember(C,S); S(col) = []; S = 1 3 0 0 This code i...

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to find if a vector has a repetitive element or not? And its repetition number
For example A=[ 1 3 1 1 2 3 5]

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


"setdiff" comand usage ?
when i run this code: a=[1 1 2]; b=[1]; setdiff(a,b) i get this: >> c ans = ...

etwa 7 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Replacing 2 elements with each other randomly?
Like : a=[2 4 5 242 24] ------> a'=[2 242 5 4 24] my code is : rndm= myset(randperm(length(myset),2)) neighbor...

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to pick randomly elements from a vector without repetation?
If I have a vector like this : a=[1 2 3 4 5] i know how to do this but my vector is something like: a=[23 46 4 2 5] ...

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How can i explain this to matlab?
if a is not an empty vector/cluster then do 'this'

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Storing vectors in a cluster?
for i=2:10 a=... end I want to store matrixes as an element of a set for every cycle. I know they can be stored i...

etwa 7 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to modify this code for true result?
The objective is to place some boxes into rooms. Each box has its own volume (given in the 'boxes' matrix) and rooms capacities ...

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Why i get the out of bound error in this code?
myset=[1 2 3 4 6]; capacity=6; passedall=[] passed=[] for q = 1:5 q=q+1 capacity=6; passedall...

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


how to create a matrix which is difference (like in sets) of antoher 2 matrix
example: a=[2 3 4] b=[3] How to create matrix C which is: c=[2 4]

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort