統計
All
Feeds
解決済み
The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...
約3年 前
回答済み
what are the unit and source of topo data in matlab?
As Kimberly said, the "topo" data is from http://www.ngdc.noaa.gov/mgg/global/etopo5.HTML. Their is a newer data set out (https:...
what are the unit and source of topo data in matlab?
As Kimberly said, the "topo" data is from http://www.ngdc.noaa.gov/mgg/global/etopo5.HTML. Their is a newer data set out (https:...
3年以上 前 | 0
回答済み
Plotting Antarctica filled polygon with gshhs function fills the inverse of Antarctica
I had the exact same problem, but found a simple solution. Flip the order of the points in Antarctica! The problem is that g...
Plotting Antarctica filled polygon with gshhs function fills the inverse of Antarctica
I had the exact same problem, but found a simple solution. Flip the order of the points in Antarctica! The problem is that g...
4年以上 前 | 0
回答済み
combine surfaces into one big surface
How I do this is I convert all the patch objects to polyshape objects, and then union the poly shape objects together. you can t...
combine surfaces into one big surface
How I do this is I convert all the patch objects to polyshape objects, and then union the poly shape objects together. you can t...
4年以上 前 | 0
回答済み
Date and number (hour) to times
If you convert the date column to datetime, and the hour column to a duration of hours, then you simply add them together to get...
Date and number (hour) to times
If you convert the date column to datetime, and the hour column to a duration of hours, then you simply add them together to get...
約5年 前 | 0
回答済み
How to define variables automatically
MATLAB will automatically resize vectors/matrix for you. You can put values into x(1:N) this way: X(1) = rand() X(2) = rand...
How to define variables automatically
MATLAB will automatically resize vectors/matrix for you. You can put values into x(1:N) this way: X(1) = rand() X(2) = rand...
約5年 前 | 0
回答済み
display symbols between numbers from a vector
you can use fprintf to print just about anything you want. calc=[10 11]; fprintf('%i + %i\n', calc(1), calc(2))
display symbols between numbers from a vector
you can use fprintf to print just about anything you want. calc=[10 11]; fprintf('%i + %i\n', calc(1), calc(2))
約5年 前 | 1
| 採用済み
回答済み
Green's Function Solution in Matlab
The person who asked this question has some (slow) sample code that will solve Green's function.
Green's Function Solution in Matlab
The person who asked this question has some (slow) sample code that will solve Green's function.
約5年 前 | 0
回答済み
Fit a curve to data points x = f(y)
Because you are looking to make a function of “y” rather than “x”, you would need to flip the X and Y when you solve the equatio...
Fit a curve to data points x = f(y)
Because you are looking to make a function of “y” rather than “x”, you would need to flip the X and Y when you solve the equatio...
約5年 前 | 0
回答済み
I am not getting the correct answer when using datetime function
You are using t = datetime(Y,M,D) Year = 1 month = 43100 day = 1 That is not what you intend I assume. I think you...
I am not getting the correct answer when using datetime function
You are using t = datetime(Y,M,D) Year = 1 month = 43100 day = 1 That is not what you intend I assume. I think you...
約5年 前 | 1
回答済み
Find specific date/time from a series of datenums
It looks like the start of your approach is reasonable. Once you make a “times” array, there is no need to add it back to the “D...
Find specific date/time from a series of datenums
It looks like the start of your approach is reasonable. Once you make a “times” array, there is no need to add it back to the “D...
約5年 前 | 0
回答済み
Is it possible to convert code written in the Matlab language into a Simulink block diagram?(Edited)
You can put all your code into a custom Simulink block: https://www.mathworks.com/help/simulink/ug/tutorial-creating-a-custom-b...
Is it possible to convert code written in the Matlab language into a Simulink block diagram?(Edited)
You can put all your code into a custom Simulink block: https://www.mathworks.com/help/simulink/ug/tutorial-creating-a-custom-b...
約5年 前 | 0
| 採用済み
回答済み
distance from us location to canada border
I don’t know of a direct function to measure distance from a country, but I did need to do something very similar. This is how I...
distance from us location to canada border
I don’t know of a direct function to measure distance from a country, but I did need to do something very similar. This is how I...
約5年 前 | 0
| 採用済み
回答済み
for loop and matrix
use nchoosek to get all the pairs: Loudness=[2.79;3.16;3.71;2.29;2.49;2.64;2.9;2.79;2.91;3.35]; FlucStr=[0.0256;0.0277;0.031...
for loop and matrix
use nchoosek to get all the pairs: Loudness=[2.79;3.16;3.71;2.29;2.49;2.64;2.9;2.79;2.91;3.35]; FlucStr=[0.0256;0.0277;0.031...
約5年 前 | 1
| 採用済み
回答済み
how can i convert program written in c code to matlab?
I’ve had a lot of luck translating C code line by line. After I get that working, I go back and hand optimize the code (Loop in ...
how can i convert program written in c code to matlab?
I’ve had a lot of luck translating C code line by line. After I get that working, I go back and hand optimize the code (Loop in ...
約5年 前 | 0
回答済み
Need help converting matrix of i2s values to sound
You could try to use the audioplayer function. You would need to scale your data, and know the sample frequency. You code ...
Need help converting matrix of i2s values to sound
You could try to use the audioplayer function. You would need to scale your data, and know the sample frequency. You code ...
約5年 前 | 0
回答済み
Exceeds array bounds Error when running m-file, but no problem if the function is run alone.
I suspect your problem has to do with using different matrix named switchdata. Many people feel that is best to avoid using glob...
Exceeds array bounds Error when running m-file, but no problem if the function is run alone.
I suspect your problem has to do with using different matrix named switchdata. Many people feel that is best to avoid using glob...
約5年 前 | 0
| 採用済み
回答済み
Variables Not Showing in Workspace After Clearing/Workspace Won't Update Varaibles
You should be able to type a variable name into the command window, and have it display the value, or open a variable from works...
Variables Not Showing in Workspace After Clearing/Workspace Won't Update Varaibles
You should be able to type a variable name into the command window, and have it display the value, or open a variable from works...
約5年 前 | 2
回答済み
How to make a program that conver a numer to binary, decimal, hexadecimal and octal.
There are built in matlab funtions that will do this conversion for you. Check out: https://www.mathworks.com/help/matlab/ref...
How to make a program that conver a numer to binary, decimal, hexadecimal and octal.
There are built in matlab funtions that will do this conversion for you. Check out: https://www.mathworks.com/help/matlab/ref...
約5年 前 | 0
回答済み
Find series of maxima of array (and matrix) within blocks of size n
You could use rehsape and max: [reshape(max(reshape(A',5,[])), [], size(A,1))]' Test: A=[1 2 5 1 0 0 5 0 1 2 4 0 5 3 2 0 ...
Find series of maxima of array (and matrix) within blocks of size n
You could use rehsape and max: [reshape(max(reshape(A',5,[])), [], size(A,1))]' Test: A=[1 2 5 1 0 0 5 0 1 2 4 0 5 3 2 0 ...
約5年 前 | 1
| 採用済み
質問
Call function by path or namespace?
I have a package that was given to me that has some functions that have the same name as built in MATLAB functions, preventing m...
約5年 前 | 3 件の回答 | 1
3
回答回答済み
Where can I find a replication of "The European Unemployment Dilemma" (Ljungqvist and Sargent, 1998)?
http://scholar.google.com/scholar?q=The+European+Unemployment+Dilemma%22+(Ljungqvist+and+Sargent,+1998)&hl=en&as_sdt=0&as_vis=...
Where can I find a replication of "The European Unemployment Dilemma" (Ljungqvist and Sargent, 1998)?
http://scholar.google.com/scholar?q=The+European+Unemployment+Dilemma%22+(Ljungqvist+and+Sargent,+1998)&hl=en&as_sdt=0&as_vis=...
約5年 前 | 0
回答済み
Why not just use Rectangular window for filtering?
More or less, the sudden start and stops can cause unexpected results, such as higher side lobes. Depending on your application,...
Why not just use Rectangular window for filtering?
More or less, the sudden start and stops can cause unexpected results, such as higher side lobes. Depending on your application,...
約5年 前 | 0
回答済み
how can i make a live data stream received and recorded from a sensor more time efficient?
1) To only plot the last 500 points, you could plot use: set(linePlot(i),'xData',t(end-500:end),'ydata',dataPlot(i,end-500:end)...
how can i make a live data stream received and recorded from a sensor more time efficient?
1) To only plot the last 500 points, you could plot use: set(linePlot(i),'xData',t(end-500:end),'ydata',dataPlot(i,end-500:end)...
約5年 前 | 0
| 採用済み
回答済み
Ignore anomalies in data sets
Do you have a rule that you can apply to define when a value should be ignored? (Above a certain value? distance from previous/n...
Ignore anomalies in data sets
Do you have a rule that you can apply to define when a value should be ignored? (Above a certain value? distance from previous/n...
約5年 前 | 0
| 採用済み
回答済み
How to sample 1 Hz analog input with different sampling frequency like 2,4,6,8,Hz
The matlab function resample will do this. https://www.mathworks.com/help/signal/ref/resample.html
How to sample 1 Hz analog input with different sampling frequency like 2,4,6,8,Hz
The matlab function resample will do this. https://www.mathworks.com/help/signal/ref/resample.html
約5年 前 | 0
回答済み
error for equality of default
Look at your code above this line for the true error.
error for equality of default
Look at your code above this line for the true error.
約5年 前 | 0
| 採用済み
回答済み
Numerical errors of basic multiple
These are floating point calculations. Not every number can be represented, and this rounding error can compound when you do mat...
Numerical errors of basic multiple
These are floating point calculations. Not every number can be represented, and this rounding error can compound when you do mat...
約5年 前 | 2
| 採用済み