Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I cant figure this out.Im trying to use the rand command for a dat file of weather data that has the highs in the first

image text in transcribed

I cant figure this out.Im trying to use the rand command for a dat file of weather data that has the highs in the first column and the lows in the second column.I want to generate a random integer from 61 to 66 but I want to use the KSBW dat file to do this.This is for my final Matlab project.I need help figuring this out.Can someone please help me out.I dont want to hardcode this.If its possible to be able to use the dat file to accomplish this then please let me know.If its not give me an alternative suggestion if there is one.

25load KSBW high low.dat 26- 27-rand (h) 28 29 30 31 h=KSBWhighlow ( : , 1) - - Command Window 62 64 65 Error using rand Size vector should be a row vector with real elements

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MongoDB Applied Design Patterns Practical Use Cases With The Leading NoSQL Database

Authors: Rick Copeland

1st Edition

1449340040, 978-1449340049

More Books

Students also viewed these Databases questions