Community Profile

photo

Pink_panther


Attivo dal 2012

Engineering

Programming Languages:
MATLAB, HTML
Spoken Languages:
English

Statistiche

All
  • MATLAB Mini Hack 2022 Participant
  • MATLAB Mini Hack Participant
  • Knowledgeable Level 1
  • First Answer
  • Creator
  • CUP Challenge Master
  • 5-Star Galaxy Level 2
  • First Submission
  • Treasure Hunt Participant
  • Introduction to MATLAB Master
  • Community Group Solver
  • Commenter

Visualizza badge

Content Feed

Visto da

Risposto
1x10 matrix using a single while loop
OP was asking for one liner. Here is the shorter verion, it worked on my PC. n=10;A=[];k=1;while k <=n,A=cat(2,A,k),k=k+1;end

quasi 3 anni fa | 0

Risposto
1x10 matrix using a single while loop
n=10;A =zeros(1,n);k=1; while k <=n A(k)=k k=k+1; end

quasi 3 anni fa | 0

| accettato