A résolu


Multielement indexing of a row array
The row array birthRateChina stores the China birth rate (per 1000 people) for years 2000 to 2012. Write a statement that create...

plus de 11 ans il y a

A résolu


Lightning strike distance: Writing a function
Write a function named LightningDistance that outputs "distance" given input "seconds". Seconds is the time from seeing lightnin...

plus de 11 ans il y a

A résolu


Pizza value using expression with parentheses
Pizza prices are typically listed by diameter, rather than the more relevant feature of area. Compute a pizza's value (cost per ...

plus de 11 ans il y a

A résolu


Create a row array using double colon operator
Create a row array from 9 to 1, using the double colon operator.

plus de 11 ans il y a

A résolu


Fahrenheit to Celsius using multiple statements
Given a Fahrenheit value F, convert to a Celsius value C. While the equation is C = 5/9 * (F - 32), as an exercise use two state...

plus de 11 ans il y a

A résolu


Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

plus de 11 ans il y a

A résolu


Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

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

A résolu


Encode Roman Numerals
Create a function taking a non-negative integer as its parameter and returning a string containing the Roman Numeral representat...

plus de 11 ans il y a

A résolu


Find the two-word state names
Given a list of states, remove all the states that have two-word names. If s1 = 'Alabama Montana North Carolina Vermont N...

plus de 11 ans il y a

A résolu


Tic Tac Toe FTW
Given a tic tac toe board: * 1 represents X * 0 represents empty. * -1 represents O It is X's move. If there is an imme...

plus de 11 ans il y a

A résolu


Subset Sum
Given a vector v of integers and an integer n, return the the indices of v (as a row vector in ascending order) that sum to n. I...

plus de 11 ans il y a

A soumis


Smooth Robust Differentiators
numerical differentiation with noise suppression

plus de 11 ans il y a | 4 téléchargements |

5.0 / 5
Thumbnail

A soumis


size() Vs. length() vs. Storing Length Value Before Entering for Loop
Compares use of size(), length(), and stored length of array when used in a for loop

plus de 11 ans il y a | 1 téléchargement |

0.0 / 5

A soumis


Partition Domain
Divide a n-dimensional domain into partitions/cells and average points in each cell

environ 12 ans il y a | 2 téléchargements |

0.0 / 5
Thumbnail

Réponse apportée
Partition Domain Given Data of the Form w = f(x,y,z)
The function below exploits the fact that you can use the point u = [x,y,z] to calculate the partition location of the point. O...

environ 12 ans il y a | 1

| A accepté

Réponse apportée
How to solve differential equations with parameters using fmincon to find out optimized parameters
You need two functions: # Function to compute derivative. Mine is called "derivative." # Function to compute objective func...

environ 12 ans il y a | 2

| A accepté

Réponse apportée
How to determine the Voronoi center coordinates knowing ?
This does not deal with the inf's. You will have to replace the infinities with finite values on your boundary to get a better ...

environ 12 ans il y a | 0

Réponse apportée
Voronoi Diagram with Delaunay Triangulation overlay
Try this: clc; clear all; close all; n=5; x = 10*rand(1, n); y = 10*rand(1, n); voronoi(x,y,'--k'); DT =...

environ 12 ans il y a | 2

| A accepté

Réponse apportée
How to make the attachment like simulation on MATLAB...I can not find how they have done this
Have you tried SimMechanics?

environ 12 ans il y a | 1

| A accepté

Réponse apportée
How to colour a 3D image with a continuous spectrum of colours
The |patch| command's fourth argument, C, is the color of the that patch. Your C matrix is C=0. That is the problem. Instead ...

environ 12 ans il y a | 3

| A accepté

Réponse apportée
How can i put my output numbers in for loop to an array
This assumes the bitmaps are all the same size: myArray = [img{:}];

environ 12 ans il y a | 2

| A accepté

Réponse apportée
How to minimize [sum of four equations] when I have their differential equations with two variables
This is a prime candidate for "grey box" modeling with the "System Identification Toolbox" which has a nice GUI. If you want ...

environ 12 ans il y a | 1

| A accepté

Réponse apportée
Where can I find a list of built-in example data?
This will work: pathFolderList = strsplit(path(),';'); matFilesOnPath = cell(size(pathFolderList)); matFileCount = 0; ...

environ 12 ans il y a | 1

Réponse apportée
load a file and sort out bad data.
You should use the lower level fgetl which gets one line at a time as a string. You can then parse that line in a while loop. ...

environ 12 ans il y a | 1

| A accepté

Réponse apportée
How to ignore specific parts of a plot ??
Given the mesh I see in your picture, the following works becuase your elements are not distorted and your edges are very close ...

environ 12 ans il y a | 2

| A accepté

Réponse apportée
How to ignore specific parts of a plot ??
Can you post the data that made this plot? My hunch is the main issue is TriScatteredInterp used Delaunay triangulation of yo...

environ 12 ans il y a | 1

A soumis


Savitzky-Golay Smoothing Filter
Very simple function for Savitzky-Golay Smoothing

environ 12 ans il y a | 29 téléchargements |

0.0 / 5
Thumbnail

Question


MATLAB, Julia Language, and QR Decomposition
I was trying to calculate so coefficients for a Savitsky Golay filter. MATLAB told me I was out of memory and would not solve t...

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

1

réponse

Question


System Identification of Closed Loop Data and Unstable Plant
I ran an experiment with the following block diagram <</matlabcentral/answers/uploaded_files/14194/Clipboard02.png>> I h...

environ 12 ans il y a | 3 réponses | 1

3

réponses

Charger plus