Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Risolto


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

oltre 11 anni fa

Inviato


Smooth Robust Differentiators
numerical differentiation with noise suppression

oltre 11 anni fa | 2 download |

5.0 / 5
Thumbnail

Inviato


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

oltre 11 anni fa | 1 download |

0.0 / 5

Inviato


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

quasi 12 anni fa | 1 download |

0.0 / 5
Thumbnail

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

quasi 12 anni fa | 1

| accettato

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

quasi 12 anni fa | 2

| accettato

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

quasi 12 anni fa | 0

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

quasi 12 anni fa | 2

| accettato

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

quasi 12 anni fa | 1

| accettato

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

quasi 12 anni fa | 3

| accettato

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

quasi 12 anni fa | 2

| accettato

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

quasi 12 anni fa | 1

| accettato

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

quasi 12 anni fa | 1

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

quasi 12 anni fa | 1

| accettato

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

quasi 12 anni fa | 2

| accettato

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

quasi 12 anni fa | 1

Inviato


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

quasi 12 anni fa | 3 download |

0.0 / 5
Thumbnail

Domanda


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

quasi 12 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 12 anni fa | 3 risposte | 1

3

risposte

Carica altro