Borrar filtros
Borrar filtros

What is the solution?

1 visualización (últimos 30 días)
sade chandler
sade chandler el 29 de Nov. de 2017
Respondida: Sammit Jain el 29 de Nov. de 2017
Plot columns 2 and 3 of the following matrix A versus column 1. The data in column 1 are time (seconds). The data in columns 2 and 3 are force (newtons). A = £ 0 -7 6 5 -4 3 10 -1 9 15 1 0 20 2 -1
  1 comentario
Steven Lord
Steven Lord el 29 de Nov. de 2017
If you show us what you've done to try to solve this problem (which sounds like a homework assignment) we may be able to offer some suggestions to help you.
P.S. Please use a more descriptive title for your questions in the future.

Iniciar sesión para comentar.

Respuestas (1)

Sammit Jain
Sammit Jain el 29 de Nov. de 2017
Hi, I agree with Steven that you should probably show us your attempt at the problem and tell us where exactly are you encountering a problem.
To get you started, try something like:
A = [1 2 3; 4 5 6; 7 8 9];
plot(A(:,1),A(:,2));
Here, before you type in this code, just check what A(:,1) gives. This should give you an idea of how MATLAB handles indices. Once you figure this out, the rest should be obvious. All the best.
Cheers.

Categorías

Más información sobre Graphics Objects en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by