Resuelto


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

más de 11 años hace

Resuelto


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

más de 11 años hace

Resuelto


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

más de 11 años hace

Resuelto


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

más de 11 años hace

Resuelto


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

más de 11 años hace

Resuelto


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

más de 11 años hace

Resuelto


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

más de 11 años hace

Resuelto


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

más de 11 años hace

Resuelto


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

más de 11 años hace

Resuelto


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

más de 11 años hace

Resuelto


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

más de 11 años hace

Resuelto


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

más de 11 años hace

Enviada


Smooth Robust Differentiators
numerical differentiation with noise suppression

más de 11 años hace | 1 descarga |

5.0 / 5
Thumbnail

Enviada


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

más de 11 años hace | 1 descarga |

0.0 / 5

Enviada


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

más de 11 años hace | 1 descarga |

0.0 / 5
Thumbnail

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

más de 11 años hace | 1

| aceptada

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

más de 11 años hace | 2

| aceptada

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

más de 11 años hace | 0

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

más de 11 años hace | 2

| aceptada

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

más de 11 años hace | 1

| aceptada

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

más de 11 años hace | 3

| aceptada

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

más de 11 años hace | 2

| aceptada

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

más de 11 años hace | 1

| aceptada

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

más de 11 años hace | 1

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

más de 11 años hace | 1

| aceptada

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

más de 11 años hace | 2

| aceptada

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

más de 11 años hace | 1

Enviada


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

más de 11 años hace | 6 descargas |

0.0 / 5
Thumbnail

Pregunta


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

más de 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 11 años hace | 3 respuestas | 1

3

respuestas

Cargar más