Jump to content

input=('') in Matlab meaning

Featured Replies

Hi guys, it's me again.

 

for i=1:n;
        fprintf('Enter the coefficient of b%d:',i)
        b(i)=input('');
 end

 

Just wondering what's the (' ') doing over there? I've already run it several times, and it seems that it is accumulating your input. Just want to know perspectives of you guys.

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.