photo

Matty


Last seen: ongeveer 2 jaar ago Active since 2022

Followers: 0   Following: 0

Statistics

  • Thankful Level 2

View badges

Feeds

View by

Question


Error in using an element in a matrix as function input
I have an array/vector c, and I want to use it as input for my function, Viscosity like this: function fv=Viscosity(c(1), c(2...

ongeveer 2 jaar ago | 1 answer | 0

1

answer

Question


Hi! Can anybody help me with my code?
mass_AnPoll = 0; for i = 1:5 mass_AnPoll = mass_AnPoll + mer(1:i); end Error Message in Code: "Arrays have incompatibl...

ongeveer 2 jaar ago | 2 answers | 0

2

answers

Question


How to Hide Legend of Plot 2?
zeys = n; text = ['Run ',num2str(zeys)]; plot(x,y,'DisplayName',text); plot(xmax,ym...

ongeveer 2 jaar ago | 1 answer | 0

1

answer

Question


Hi! How can I create a conditional statement from checking if an array is empty? I will paste my non-working code here.
TF = isempty(matches); %true-false statement: logical 1 = True, logical 0 = False GRRRRR = double(TF); if GRRRRR == 1 %%if i...

ongeveer 2 jaar ago | 2 answers | 0

2

answers

Question


I have a Discontinuous Prompt: That is, after a user input in the first message box, there is still a need to input the same in the Command Window. How to fix?
Here is my code, but it is discontinuous. That is, after a user input in the first message box, there is still a need to input t...

ongeveer 2 jaar ago | 1 answer | 0

1

answer

Question


My first user-input prompt is to enter a number (say, x). What should I write if my next message box MUST contain the same number of prompt questions as x?
Hi! My first user-input prompt is to enter a number (say, x). What should I write (code) if my next message box MUST contain the...

meer dan 2 jaar ago | 1 answer | 0

1

answer