Jacob Wood
Followers: 0 Following: 0
Feeds
답변 있음
How to use FORTRAN program in MATLAB
You can use Matlab to execute sytem commands on your machine. If you can run the fortran program from the command line, you can ...
How to use FORTRAN program in MATLAB
You can use Matlab to execute sytem commands on your machine. If you can run the fortran program from the command line, you can ...
4년 초과 전 | 0
답변 있음
Filtering through multiple vectors for a single set of values
Chad, This might be a solution for you. It picks the most common root label and grabs all of them: Q1 = [ 2, 1, 1, 0.058437210...
Filtering through multiple vectors for a single set of values
Chad, This might be a solution for you. It picks the most common root label and grabs all of them: Q1 = [ 2, 1, 1, 0.058437210...
4년 초과 전 | 0
답변 있음
how can I solve this problem?
Hi Sharon, This is a perfect application for Matlab's logical indexing. x_is_one = x == 1; %find locations where x=1 y_select...
how can I solve this problem?
Hi Sharon, This is a perfect application for Matlab's logical indexing. x_is_one = x == 1; %find locations where x=1 y_select...
4년 초과 전 | 1
답변 있음
How to organize and analyze my excel files in matlab?
Hi Randy, readtable() might be a nice place to start. https://www.mathworks.com/help/matlab/ref/readtable.html After the data ...
How to organize and analyze my excel files in matlab?
Hi Randy, readtable() might be a nice place to start. https://www.mathworks.com/help/matlab/ref/readtable.html After the data ...
4년 초과 전 | 0
답변 있음
How to measure the distance error between local and global trajectories?
My approach would be: resample red curve onto the blue x values using interp1, find local error in each point, sum together to c...
How to measure the distance error between local and global trajectories?
My approach would be: resample red curve onto the blue x values using interp1, find local error in each point, sum together to c...
거의 5년 전 | 2
답변 있음
Contour plot on top of surface plot
You can get similar results with surf() and contourf() [X,Y,Z] = peaks(25); surf(X,Y,Z-10) hold on contourf(X,Y,Z)
Contour plot on top of surface plot
You can get similar results with surf() and contourf() [X,Y,Z] = peaks(25); surf(X,Y,Z-10) hold on contourf(X,Y,Z)
거의 5년 전 | 0
답변 있음
Column Comparison and Boolean
Matlab is pretty good at this one :) responsearray = A(:,2:2:end)>A(:,1:2:end); What we are doing here is creating an array wi...
Column Comparison and Boolean
Matlab is pretty good at this one :) responsearray = A(:,2:2:end)>A(:,1:2:end); What we are doing here is creating an array wi...
거의 5년 전 | 0
답변 있음
Removing Short Runs from Binary Data
I've got a silly one-liner: A = [0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,...
Removing Short Runs from Binary Data
I've got a silly one-liner: A = [0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,...
거의 5년 전 | 0
답변 있음
Working with tables: populate column of NaNs in table 1, with contents of column of table 2, given a condition.
It is possible to do with a small amount of code. The easiest way to utilize a table like your "t_2", where the "letter" column ...
Working with tables: populate column of NaNs in table 1, with contents of column of table 2, given a condition.
It is possible to do with a small amount of code. The easiest way to utilize a table like your "t_2", where the "letter" column ...
거의 5년 전 | 0
| 수락됨
답변 있음
Help with event function in ode15s
The event you are looking to implement sounds quite similar to the example event Matlab uses in the documentation. We can change...
Help with event function in ode15s
The event you are looking to implement sounds quite similar to the example event Matlab uses in the documentation. We can change...
거의 5년 전 | 0
답변 있음
Interpolation data to achieve gridded latitude and longitude when I have 360 month
Behzad, I believe the scatteredInterpolant() function is ideal for this case. This solution below is certainly not the fastest,...
Interpolation data to achieve gridded latitude and longitude when I have 360 month
Behzad, I believe the scatteredInterpolant() function is ideal for this case. This solution below is certainly not the fastest,...
거의 5년 전 | 1
| 수락됨
답변 있음
How to take curl of numeric vector fields?
Matlab kindly includes a builtin curl() function, you can find information and a sample implementation here: https://mathworks.c...
How to take curl of numeric vector fields?
Matlab kindly includes a builtin curl() function, you can find information and a sample implementation here: https://mathworks.c...
거의 5년 전 | 0
| 수락됨
답변 있음
How to extract rows from a table?
Lucas, Matlab can be very good at working with tables and indexing like this. One of the most powerful concepts in Matlab is lo...
How to extract rows from a table?
Lucas, Matlab can be very good at working with tables and indexing like this. One of the most powerful concepts in Matlab is lo...
거의 5년 전 | 0
답변 있음
Cell array help with strings
One way this could be accomplished is by tracking what cell you are currently looking to write into, and then increasing this "c...
Cell array help with strings
One way this could be accomplished is by tracking what cell you are currently looking to write into, and then increasing this "c...
거의 5년 전 | 1
| 수락됨
답변 있음
Import Data and plot it with an extra variable as vector
Should be an easy fix! What you are looking for is an element-wise divide: https://www.mathworks.com/help/matlab/ref/rdivide.h...
Import Data and plot it with an extra variable as vector
Should be an easy fix! What you are looking for is an element-wise divide: https://www.mathworks.com/help/matlab/ref/rdivide.h...
거의 5년 전 | 0
답변 있음
Loops in parfor are overly slow in a very simple code
Matlab actually multithreads element-wise multiplication, thus using all available cores in the "single core" case and no additi...
Loops in parfor are overly slow in a very simple code
Matlab actually multithreads element-wise multiplication, thus using all available cores in the "single core" case and no additi...
거의 5년 전 | 0
| 수락됨
답변 있음
STREAMING REAL TIME DATA FROM EXCEL TO MATLAB
One possibility - you can constantly read the Excel document with xlsread(); this will read in new values every time the Excel d...
STREAMING REAL TIME DATA FROM EXCEL TO MATLAB
One possibility - you can constantly read the Excel document with xlsread(); this will read in new values every time the Excel d...
거의 5년 전 | 0
답변 있음
How can i retrieve column based on cell values?
You can accomplish this with logical indexing. See below for an example: d = {'Putih','Abu-abu','Hitam'; 0.014149,0.04175,0.081...
How can i retrieve column based on cell values?
You can accomplish this with logical indexing. See below for an example: d = {'Putih','Abu-abu','Hitam'; 0.014149,0.04175,0.081...
거의 5년 전 | 1
| 수락됨
답변 있음
Cylinder fit to a point cloud data
Not the fastest running solution, but I think rather straightforward. This uses fminsearch() to find the 6 parameters that defin...
Cylinder fit to a point cloud data
Not the fastest running solution, but I think rather straightforward. This uses fminsearch() to find the 6 parameters that defin...
거의 5년 전 | 0
문제를 풀었습니다
Find the peak 3n+1 sequence value
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...
대략 5년 전
문제를 풀었습니다
Alphabetize by last name
Given a list of names in a cell array, sort the list by the last name. So if list = {'Barney Google','Snuffy Smith','Dagwood ...
대략 5년 전
문제를 풀었습니다
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...
대략 5년 전
문제를 풀었습니다
An asteroid and a spacecraft
🚀 Imagine a non-relativistic simple situation. Assume positions p0, p1, p2, and p3 are three dimensional Cartesian ...
대략 5년 전
문제를 풀었습니다
Acid and water
⚖ ⚖ ⚖ ⚖ ⚖ ⚖ ⚖ ⚖ Assume that there is a 100 liter tank. It is initially fi...
대략 5년 전
문제를 풀었습니다
Birthday cake
It's Cody's 5th birthday, and you've been tasked with putting the candles on the cake. Your goal is to maximize the distance bet...
대략 5년 전
문제를 풀었습니다
The 5th Root
Write a function to find the 5th root of a number. It sounds easy, but the typical functions are not allowed (see the test su...
거의 6년 전
문제를 풀었습니다
Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...
거의 6년 전
문제를 풀었습니다
Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...
거의 6년 전
문제를 풀었습니다
Interpolator
You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...
거의 6년 전