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
Alphabetical Sorting (case insensitive)
Hello Aiden, Here's a simple (and likely not very efficient) bubblesort implementation of case-insensitive string array sorti...

plus de 6 ans il y a | 1

Réponse apportée
What are (r min) & (r max) in "imfindcircles"?
Hello Shahin, I suspect that this is an accuracy issue. The recommendation from MathWorks is that for best results, the condi...

plus de 6 ans il y a | 0

Réponse apportée
How to do method documentation for Classes/Handles just as normal functions in m files?
Hello Yasen You can provide help text for a function or class by doing the following: 1) Below the class or function defin...

plus de 6 ans il y a | 0

Réponse apportée
How to link Pushbutton and Radiobutton (Matlab GUI)
Hello Durgesh I understand that you have multiple radio buttons and a push button, and that when the push button is clicked, ...

plus de 6 ans il y a | 0

Réponse apportée
how can i do that for all columns?
Hi Ach The "sum" function in MATLAB returns the total of all elements in a column (or row) of a matrix. For more information ...

plus de 6 ans il y a | 0

Réponse apportée
Permutations of integers with sum restrictions
Hi Christoph There are a couple of ways that you can do this: 1. Edit the source code of the "npermutek" function. Where t...

plus de 6 ans il y a | 1

| A accepté

A résolu


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

plus de 6 ans il y a

A résolu


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

plus de 6 ans il y a

A résolu


Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

plus de 6 ans il y a

Réponse apportée
when i excute my model it always give me this massage Failed to load URL https://localhost:31515/toolbox/simulink/simulink/slmsgviewer/slmsgviewer.html?snc=CRW1E5 with error (-111).
This is probably due to a network configuration issue (proxy). Make sure that any antivirus or firewall programs installed on...

plus de 6 ans il y a | 2

| A accepté

Réponse apportée
Why does STRSPLIT, contradictory to the documentation, need escaped backslashes in delimiter-specification?
Hello Frederick The character '\n' is not generally treated as a newline character by MATLAB, unless it is along with certain...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
How can I eliminate "PDE Toolbox Error! Too many input arguments"?
Hello Allen This issue most likely occurs because there are one or more functions in your current folder or the userpath (def...

presque 7 ans il y a | 2

| A accepté

Réponse apportée
Options in Genetic Algorithm don't work
Hello Luigi The *optimoptions()* function is part of the Optimization Toolbox, which is different from the Global Optimizatio...

presque 7 ans il y a | 4

Réponse apportée
How do i use str2func for methods within a class?
Hello Jimmy Here is my understanding of what you are trying to achieve: 1. Class A has a function, let's say, functionA ...

presque 7 ans il y a | 1

| A accepté

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

presque 7 ans il y a

A résolu


Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

presque 7 ans il y a

Réponse apportée
Matlab and GAMS Interface
Hi The following link discusses how to interface GAMS with MATLAB: <http://pages.cs.wisc.edu/~ferris/matlab/gdxmrw.pdf> ...

presque 7 ans il y a | 0

Réponse apportée
Read Information of Line with keyword from File
Hello Simon You can use the *fgets()* or *fgetl()* functions from MATLAB to read the file line-by-line into an array. These w...

presque 7 ans il y a | 0

Réponse apportée
How to prevent over-writing the y2 in my interpolation?
Hello Ismail, I understand that you have 100 plots, and a data file containing 40 columns, and that in each plot, you want to...

presque 7 ans il y a | 0

Réponse apportée
How to select columns from data matrix using "for" loop?
Hello Ismail, I understand that you have 100 plots, and a data file containing 40 columns, and that in each plot, you want t...

presque 7 ans il y a | 0

Réponse apportée
Table Indexing and trained model prediction
Hi Sally, It looks like the issue is with the following line: table = table(age,ethnicity,gender,height); This issu...

presque 7 ans il y a | 1

Réponse apportée
sdl video display is black in image inversion example
Hello Hemant Ghuge, I understand that you are unable to see the video on the SDL Video Viewer block while running in External...

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

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

presque 7 ans il y a

A résolu


De-dupe
Remove all the redundant elements in a vector, but keep the first occurrence of each value in its original location. So if a =...

presque 7 ans il y a

A résolu


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

presque 7 ans il y a

A résolu


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

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

presque 7 ans il y a

A résolu


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

presque 7 ans il y a

Charger plus