A résolu


Check that number is whole number
Check that number is whole number Say x=15, then answer is 1. x=15.2 , then answer is 0. <http://en.wikipedia.org/wiki/Whole...

environ 5 ans il y a

A résolu


MATLAB Basic: rounding IV
Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9

environ 5 ans il y a

A résolu


MATLAB Basic: rounding III
Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8

environ 5 ans il y a

A résolu


MATLAB Basic: rounding II
Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9

environ 5 ans il y a

A résolu


MATLAB Basic: rounding
Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

environ 5 ans il y a

Question


What does "-tf inf" stand for in the command system('rtwdemo_secondOrderSystem -tf inf &')
I have just completed the tutorials on Simulink Coder, I would like to know what are the parameters -tf inf doing . Does any...

environ 5 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
How can I create a continually updating graph from MQTT subscription data?
I have a similar project, though, I think you need to publish timestamp,data in the same message to be abe to plot the real time...

plus de 5 ans il y a | 0

| A accepté

A résolu


Alphabetize by last name
Given a list of names in a cell array, sort the list by the last name. So if list = {'Barney Google','Snuffy Smith','Dagwood ...

plus de 5 ans il y a

A résolu


Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

plus de 5 ans il y a

Question


How to save a callback function
I need to save a datacursormode callback function, as a local variable (at least the syntax) . The argument of this function is...

plus de 5 ans il y a | 1 réponse | 0

0

réponse

A résolu


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

plus de 5 ans il y a

A résolu


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

plus de 5 ans il y a

A résolu


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

plus de 5 ans il y a

A résolu


Interpolator
You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

plus de 5 ans il y a

A résolu


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

plus de 5 ans il y a

A résolu


Read a column of numbers and interpolate missing data
Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...

plus de 5 ans il y a

A résolu


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

plus de 5 ans il y a

Réponse apportée
how to upload a random excel file and read it
The trick is that your functions have local variables, you need to send them out using the handles. you may use the import da...

plus de 5 ans il y a | 0

Question


How to create an object using class name
In my function, I am getting the class name from an object to create a new one. What is the right syntax to creat the new Object...

plus de 5 ans il y a | 3 réponses | 0

3

réponses

Question


Icon (start, finish, waypoint,checkflag) on plot
Is there any graphical icon already implemented in MATLAB for 2D /3D plots?

plus de 5 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Mqtt toolbox in Matlab unable to process all mqtt messages
I also confirm that the function readall is not performing as expected, causing a downsampling. I am generating a sinus wave 2H...

presque 6 ans il y a | 0

Réponse apportée
Mqtt toolbox in Matlab unable to process all mqtt messages
I suspected the Quality Of Service set to 2, but it is not influencing the number of readings

presque 6 ans il y a | 0

Réponse apportée
How to connect local host with mqtt client/broker??
Check your IP adress of your localhost (ipconfig or ifconfig if you are linux user): this would be the address to use : 'tcp://0...

presque 6 ans il y a | 0

Question


How to pass the object name as a selectable property?
Hi all, I have started to use some hgtransform objects and started to group them. The idea is to build generic configurable gr...

presque 6 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
How to plot the real time data from arduino?
With a bit of delay, the issue is in your Arduino code: Serial.available will return the number of bytes you can read. So you ...

presque 6 ans il y a | 0

A résolu


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

plus de 13 ans il y a

A résolu


Is my wife right?
Regardless of input, output the string 'yes'.

plus de 13 ans il y a

A résolu


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

plus de 13 ans il y a

A résolu


Add two numbers
Given a and b, return the sum a+b in c.

plus de 13 ans il y a

A résolu


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

plus de 13 ans il y a

Charger plus