Question: Question I ( 2 0 marks ) . Write a Matlab function [ v ] = q 1 _ 2 4 0 2 6 0
Question I marks Write a Matlab function v qn that takes a natural number n and returns a vector of decimal digits of this number.
For example,
q returns vector ;
q returns vector ;
q returns vector ;
The program should work correctly for other reasonable inputs.
If n is not natural, the function should return empty vector
Save your function as m file with the name qm and submit it with your answers.
Note that the function should return the answer as a vector. In addition, it can display output andor messages to the screen, but the function will be evaluated based on its output v
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
