Réponse apportée
Can we convert .m file to simulink circuit directly to use it for raspberry pi as a standalone device?
Hi Teja, Currently, you cannot convert the .m file to Simulink circuit directly but if the .m file contains script related ...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
How to speed up my code?
Hi Canberk, The following provides information on tools within MATLAB that can help you optimize the performance of your code...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Storing output values from a nested while loop
Hi Harrison, U can create a row vector initially as out=[]; Later store the value of gens in vector 'out' using concatenat...

plus de 6 ans il y a | 0

Réponse apportée
Create a program that asks a user to input a number and then finds the sum of digits of the number using recursion. for example 341 = 3+4+1 = 8
Hi Matt, You have written function definition but missed to call the function 'mySum', that is why it is unable to compute an...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How to implement inequality constrainst in fmincon
Hi Saifullah Khalid , In order to adapt the inequality constraint in fmincon, you can take advantage of the additional input ...

plus de 6 ans il y a | 0

Réponse apportée
Access cell array using an indexed array
Hi Changho, You can refer to the following code snippet to get the desired output. function out=my_func(T,idx) out=[];...

plus de 6 ans il y a | 0

Réponse apportée
HI, Following code generates 3 subplots for 3 different value of ik in 1 window , since the loop iterates ik= 1:3. I need to modify this peice of code to generate a single plot for variable Sum merging all three value of ik into one plot
Hi Sagar, I understand that you want to create a single plot for variable Sum merging all values of ik instead of a subplot f...

plus de 6 ans il y a | 0

A résolu


Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

plus de 6 ans il y a

A résolu


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

plus de 6 ans il y a

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 6 ans il y a

Réponse apportée
how can I use for loop to change non linear constraints?
Hi Francesco, I understand that you have a non linear contraint function to be optimized multiple times in for loop which de...

plus de 6 ans il y a | 0

Réponse apportée
How do I change the tab order of my uipanels relative to each other in my GUI?
Hi Amelia, The ability to use the Tab Order Editor to set the tab order between uipanels is not available in MATLAB. The t...

plus de 6 ans il y a | 0

Réponse apportée
Registering letters in the plot (GUIDE)
Hi Yuda, In order to better assist you can you send the code for a special pushbutton.

plus de 6 ans il y a | 0

Réponse apportée
Different implementation between 2015b and 2017b for SVPWM Generator
Hi Albert, There is a bug in previous releases which have been fixed in MATLAB 2016a. As a workaround in previous releases...

plus de 6 ans il y a | 0

Réponse apportée
How to assess / improve non-linear parameter estimation of differential equation for chemical reaction rates
Hi Entropie, There are two tool boxes available in MATLAB to solve differntial equations as well as optimize the unknown para...

plus de 6 ans il y a | 0

Réponse apportée
Any examples of 2D biological agent-based models?
Hi Anna, To build biological models you can use "SimBiology" tool box. Refer to this <https://www.mathworks.com/help/simbi...

plus de 6 ans il y a | 0

Réponse apportée
Is this how to correctly find the output signal using unit-amp and unit-step responses?
Hi Ellen, I would suggest you that first convert the time domain signal into s-domain(Laplace transform) and then find out th...

plus de 6 ans il y a | 0

Réponse apportée
How to calculate difference between dates while values in rows are equal?
Hi Louisa, In order to find the difference between 2 dates which are stored in 'serial date number' format First, convert ...

plus de 6 ans il y a | 0

A résolu


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

plus de 6 ans il y a

A résolu


Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

plus de 6 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 6 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 6 ans il y a

A résolu


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

plus de 6 ans il y a

A résolu


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

plus de 6 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 6 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 6 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 6 ans il y a

A résolu


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

plus de 6 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 6 ans il y a

A résolu


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

plus de 6 ans il y a

Charger plus