Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

when I run this it is gives me an error LAB Editor-CAUsersarpan,DocumentsYMATLAB

ID: 3726927 • Letter: W

Question

when I run this it is gives me an error

LAB Editor-CAUsersarpan,DocumentsYMATLABAd.rm function [V]- Findvolume (N,A) 2prompts 'What is the number of membex in your family In' 3result-input (prompt) 4-1 5prompt 'What is the area of the roof in m 2 Nn' 6result1-input (prompt) 7A-resultl: N=result; sum=0; 9water needed-zeros (1,36) o- 1month=[31 28 31 30 31 30 31 31 30 31 30 311 1-matobj matfile("variables,mat ) 2s-load ('variables.mat): rainfal1 struct2d(rainfall) [maximum, l]=max(ts.rainfall)); 14- 5 i %calculating for a year hence rainfall is periodic about a year 17 ! [mnthlyrfpesort (s.rainfall,'descend') 8 %urns updated month 19-1 um=month (1); 20-- for i=1 : 12 for j-l:2 mmand Window 50 Error using load Unable to read file 'variables.mat*. No such file or directory Error in Ad (line 12) s load ('variables mat)

Explanation / Answer

There might be several possibilities for this:

File doesn’t exist in the current working directory or where you are executing Ad.m file

close all the programs and Try restarting Matlab. It may be due to sometimes memory is not sufficient or due to a larger size of input file. restarting give you fresh allocation.

If you are working in Linux. It may be due to the permissions issue. check if your user has permissions to the file else give your user the permissions and run again.

It might also be due to the corrupt .mat file. Just check if your file is not corrupt.