Question

defining simulink variables through matlab srcript

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

23 days 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?

26 days 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?

3 months 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 ...

3 months ago | 0 answers | 0

Answered

Write a function called freezing that takes a vector of numbers that correspond to daily low temperatures in Fahrenheit. Return numfreeze, the number of days with sub freezing temperatures (that is, lower than 32 F) without using loops. Here is an ex

function numfreeze=freezing(w) lowerthan_32=w(w<32); numfreeze=numel(lowerthan_32); end

Write a function called freezing that takes a vector of numbers that correspond to daily low temperatures in Fahrenheit. Return numfreeze, the number of days with sub freezing temperatures (that is, lower than 32 F) without using loops. Here is an ex

function numfreeze=freezing(w) lowerthan_32=w(w<32); numfreeze=numel(lowerthan_32); end

4 months ago | 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...

4 months 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...

4 months 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...

4 months ago | 0

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...

5 months ago | 0 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?

5 months 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...

8 months ago | 0