Plotting, keep getting error that matrix dimensions must agree
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Stephen Dahl
il 14 Gen 2017
Commentato: the cyclist
il 30 Gen 2022
I keep getting the same error. I have changed the functions and limits and it worked but it will not work with the functions I need to plot. Not sure what to do, so any help is appreciated.
Thanks.
<<

>>

1 Commento
the cyclist
il 14 Gen 2017
Modificato: the cyclist
il 14 Gen 2017
In the future, please upload the code itself, rather than an image of the code. Then we can paste your code directly into MATLAB, which makes it much easier for us to help you.
Risposta accettata
the cyclist
il 14 Gen 2017
Modificato: the cyclist
il 14 Gen 2017
You need to use array operations (i.e. element-by-element operations) for what you want to do, rather than matrix operations. For example, you need
y = -1.436./x
in place of
y = -1.436/x
3 Commenti
the cyclist
il 30 Gen 2022
@Muhammad Azrul Izmee, I suggest you open a new question, with the full description of your problem, instead of commenting on a 5-year-old question and not providing any details.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!