Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
error correction in programme
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Find the errors in the following program statements: You an make correction in the problem itself.
1. function [x,y] = (a, b, c)
2. for I = 1 :2:-10
3. fprintf(‘The value of x is %f, y is %f, and z is %f\n’,x, y, z, a);
4. switch number1, number2 % switch statement
5. if x>y
count = count+1;
endif
6. array1=[1 2 4; 5 6 7;; 8 9 10];
7. z = x(x^2 – y) – (x – y)^2;
8. call to a function is as follows (output a1 and b1, input a, b, c):
[a1,b1] = (a,b,c)
9. abc!xyz = 29; % definition of a variable
10. x = 1:0.1:100;
y = cos(x);
z = sin(x);
plot(x,y,z);
1 Kommentar
Steven Lord
am 19 Nov. 2020
This sounds like a homework assignment. If it is, show us the code you've written to try to solve the problem and ask a specific question about where you're having difficulty and we may be able to provide some guidance.
If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the MATLAB Onramp tutorial (https://www.mathworks.com/support/learn-with-matlab-tutorials.html) to quickly learn the essentials of MATLAB.
If you aren't sure where to start because you're not familiar with the mathematics you'll need to solve the problem, I recommend asking your professor and/or teaching assistant for help.
Antworten (0)
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!