Solved


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

11 years ago

Solved


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

11 years ago

Solved


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

11 years ago

Solved


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

11 years ago

Solved


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

11 years ago

Solved


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

11 years ago

Solved


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

11 years ago

Solved


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

11 years ago

Solved


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

11 years ago

Solved


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

11 years ago

Solved


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

11 years ago

Solved


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

11 years ago

Submitted


Smooth Robust Differentiators
numerical differentiation with noise suppression

11 years ago | 3 downloads |

5.0 / 5
Thumbnail

Submitted


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

11 years ago | 1 download |

0.0 / 5

Submitted


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

11 years ago | 1 download |

0.0 / 5
Thumbnail

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

11 years ago | 1

| accepted

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

11 years ago | 2

| accepted

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

11 years ago | 0

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

11 years ago | 2

| accepted

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

11 years ago | 1

| accepted

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

11 years ago | 3

| accepted

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

11 years ago | 2

| accepted

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

11 years ago | 1

| accepted

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

11 years ago | 1

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

11 years ago | 1

| accepted

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

11 years ago | 2

| accepted

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

11 years ago | 1

Submitted


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

11 years ago | 5 downloads |

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

11 years ago | 1 answer | 0

1

answer

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

11 years ago | 3 answers | 1

3

answers

Load more