chen - MATLAB Central
photo

chen


Attivo dal 2013

Followers: 0   Following: 0

Messaggio

Statistica

All
CodyMATLAB AnswersZoom OutFrom 01/13 to 04/25Use left and right arrows to move selectionFrom 01/13Use left and right arrows to move left selectionTo 04/25Use left and right arrows to move right selectionUse TAB to select grip buttons or left and right arrows to change selection100%
MATLAB Answers

2 Domande
0 Risposte

Cody

0 Problemi
109 Soluzioni

RANK
65.234
of 298.102

REPUTAZIONE
0

CONTRIBUTI
2 Domande
0 Risposte

ACCETTAZIONE DELLE RISPOSTE
0.0%

VOTI RICEVUTI
0

RANK
 of 20.534

REPUTAZIONE
N/A

VALUTAZIONE MEDIA
0.00

CONTRIBUTI
0 File

DOWNLOAD
0

ALL TIME DOWNLOAD
0

RANK
3.211
of 160.343

CONTRIBUTI
0 Problemi
109 Soluzioni

PUNTEGGIO
1.090

NUMERO DI BADGE
1

CONTRIBUTI
0 Post

CONTRIBUTI
0 Pubblico Canali

VALUTAZIONE MEDIA

CONTRIBUTI
0 Punti principali

NUMERO MEDIO DI LIKE

  • Solver

Visualizza badge

Feeds

Visto da

Domanda


How to vectorize this "for" loop, or parallel it.
fun = @(x,y) x + x.*y; N = 1e3; K = zeros(N); for i = 1:N for j = i:N K(i,j) = fun(i, j); end end

circa 11 anni fa | 2 risposte | 0

2

risposte

Domanda


Convert the variables x1, x2,... in an anonymous function to x(1,:) ,x(2,:).....
For example: f = @(x1, x2, ... , x15) x1 .* x2 .* ... .* x15 I want get: f = @(x) x(1,:) .* x(2,:) .* ... .*x(15,:)

circa 12 anni fa | 2 risposte | 0

2

risposte