photo

Jennifer Smith


Active since 2015

Followers: 0   Following: 0

Message

Statistics

All
  • Thankful Level 1
  • First Answer
  • Solver

View badges

Feeds

View by

Answered
How to use fprintf to add a header when printing a matrix?
You can create a variable that formats the output, then call it in fprintf. For example: % setup='%1s %1s'; Where...

nästan 10 år ago | 0

Question


How do I scale a scatter-plot to 250 by 250 using the line data type?
This is the code: % x=[1,2,3,4,5,6] y=exp(x) scatter(x,y,'*') line(25,4) When I tried doing this, I go...

nästan 10 år ago | 1 answer | 0

1

answer

Answered
How can you prevent the output in a MATLAB pdf file from being cut off the page?
There are some older versions of MATLAB that actually have output issues when printing the code to the PDF file; my suggestion i...

nästan 10 år ago | 0

Solved


Create a row array using double colon operator
Create a row array from 9 to 1, using the double colon operator.

nästan 10 år ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

nästan 10 år ago

Solved


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

nästan 10 år ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

nästan 10 år ago