Question

defining simulink variables through matlab srcript

how can I define variables through matlab script? I am using trial version

12 months ago | 1 answer | 0

Question

define variable in simulink

When I am defining variable in simulink, its showing error. I am using trial verion. can you help me on this?

1 year ago | 0 answers | 0

Answered

ASSIGNMENT: TEXT FILES Write a function called char_counter that counts the number of a certain character in a text file. The function takes two input arguments, fname, a char vector of the filename and character, the char it counts in the file.

my question is which all characters should be eliminated? on this question?

ASSIGNMENT: TEXT FILES Write a function called char_counter that counts the number of a certain character in a text file. The function takes two input arguments, fname, a char vector of the filename and character, the char it counts in the file.

my question is which all characters should be eliminated? on this question?

1 year ago | 0

Question

Week 9, Assignment 2

Write a function called char_counter that counts the number of a certain character in a text file. The function takes two input ...

1 year ago | 0 answers | 0

Answered

Problem with logical indexing

function numfreeze=freezing(w) lowerthan_32=w(w<32); no_logical_values=lowerthan_32(lowerthan_32>=0); numfreeze=length(no_log...

Problem with logical indexing

function numfreeze=freezing(w) lowerthan_32=w(w<32); no_logical_values=lowerthan_32(lowerthan_32>=0); numfreeze=length(no_log...

1 year ago | 0

Answered

counting no .of temperature less than 32 in array

function numfreeze=freezing(w) lowerthan_32=w(w<32); no_logical_values=lowerthan_32(lowerthan_32>=0); numfreeze=length(no_log...

counting no .of temperature less than 32 in array

function numfreeze=freezing(w) lowerthan_32=w(w<32); no_logical_values=lowerthan_32(lowerthan_32>=0); numfreeze=length(no_log...

1 year ago | 0

Answered

next prime number using While loops

function [k]=next_prime(n) k=0; while isprime(k)==0 n=n+1; k=n; end end This code also will work. Please...

next prime number using While loops

function [k]=next_prime(n) k=0; while isprime(k)==0 n=n+1; k=n; end end This code also will work. Please...

1 year ago | 9

Question

Write a function called valid_date that takes three positive integer scalar inputs year, month, day. If these three represent a valid date, return a logical true, otherwise false. The name of the output argument is valid. If any of the inputs is not

unction valid=valid_date(year,month,date) if nargin==3 valid1=true; else valid=false; return end v1=[year]; v2=[mo...

1 year ago | 4 answers | 0

Answered

Matrix as input argument of a matlab function

Thanks for your valuable feedback. can I ask few questions more?

Matrix as input argument of a matlab function

Thanks for your valuable feedback. can I ask few questions more?

1 year ago | 0

Answered

Matrix as input argument of a matlab function

Write a function called corners that takes a matrix as an input argument and returns four outputs: the elements at its four corn...

Matrix as input argument of a matlab function

Write a function called corners that takes a matrix as an input argument and returns four outputs: the elements at its four corn...

1 year ago | 0