Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Could somebody explain why I am getting the error message? thanks! MATLAB R2016b-academic use Dalila HOME APPS EDITOR .ositive integersurlug ical values..x New Variable Analyze

image text in transcribedCould somebody explain why I am getting the error message? thanks!image text in transcribed

MATLAB R2016b-academic use Dalila HOME APPS EDITOR .ositive integersurlug ical values..x New Variable Analyze Code Find Fies Run and Time Set Path Request Suppot New New New Open Campare Import Save Scripl Live Scrip! Favarites Simuink Layau Add-Ons Help Dats, Workspace . Clear warkspace Clear Cammands Parallel Learn MATLAR Editor-CiUsers dalil Documents MATLAB'hw5.m Command Windnw X remain survey.m 57- 58 59- 60- 61 y=-1:0.1:1 z 2:0.1:2 Array indices must be positive integers o values. ; xval-length (x); yval-length (y) zval-length (z); T-zeros (xval, yval, zval) Error in hw5 (line 77) p2b (1+3)= sum ( T ( i, j , :))/zval; 64 for j-1:yval 65-Hl for k= 1: zva T(i,j,k)(i) 2 + 2 y(j).2 +3*z(k).2 67 68-- 69 70 71 72 73 74- 75 for i-1: xval end end end p2a-T; p2b- zeros (xval,yval); % Matrix with dimensions len for j-1:yval p2b ( 1 ,j)-sum (T(i,j, :))/7val; 78 end script Ln 60 Col 15 2/15/2019 1 MATLAB R2016b-academic use Dalila HOME APPS EDITOR .ositive integersurlug ical values..x New Variable Analyze Code Find Fies Run and Time Set Path Request Suppot New New New Open Campare Import Save Scripl Live Scrip! Favarites Simuink Layau Add-Ons Help Dats, Workspace . Clear warkspace Clear Cammands Parallel Learn MATLAR Editor-CiUsers dalil Documents MATLAB'hw5.m Command Windnw X remain survey.m 57- 58 59- 60- 61 y=-1:0.1:1 z 2:0.1:2 Array indices must be positive integers o values. ; xval-length (x); yval-length (y) zval-length (z); T-zeros (xval, yval, zval) Error in hw5 (line 77) p2b (1+3)= sum ( T ( i, j , :))/zval; 64 for j-1:yval 65-Hl for k= 1: zva T(i,j,k)(i) 2 + 2 y(j).2 +3*z(k).2 67 68-- 69 70 71 72 73 74- 75 for i-1: xval end end end p2a-T; p2b- zeros (xval,yval); % Matrix with dimensions len for j-1:yval p2b ( 1 ,j)-sum (T(i,j, :))/7val; 78 end script Ln 60 Col 15 2/15/2019 1

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

Step: 3

blur-text-image

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

How autonomous should the target be left after the merger deal?

Answered: 1 week ago