Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gesendet


Smooth Robust Differentiators
numerical differentiation with noise suppression

fast 12 Jahre vor | 1827 Downloads |

5.0 / 5
Thumbnail

Gesendet


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

fast 12 Jahre vor | 411 Downloads |

0.0 / 5

Gesendet


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

etwa 12 Jahre vor | 194 Downloads |

0.0 / 5
Thumbnail

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

etwa 12 Jahre vor | 1

| akzeptiert

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

mehr als 12 Jahre vor | 2

| akzeptiert

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 2

| akzeptiert

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

mehr als 12 Jahre vor | 1

| akzeptiert

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

mehr als 12 Jahre vor | 3

| akzeptiert

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

mehr als 12 Jahre vor | 2

| akzeptiert

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

mehr als 12 Jahre vor | 1

| akzeptiert

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

mehr als 12 Jahre vor | 1

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

mehr als 12 Jahre vor | 1

| akzeptiert

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

mehr als 12 Jahre vor | 2

| akzeptiert

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

mehr als 12 Jahre vor | 1

Gesendet


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

mehr als 12 Jahre vor | 2251 Downloads |

0.0 / 5
Thumbnail

Frage


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

mehr als 12 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 12 Jahre vor | 3 Antworten | 1

3

Antworten

Mehr laden