Community Profile

photo

Benjamin Thompson


Last seen: Today 2015 以来アクティブ

Programming Languages:
C++, C, MATLAB
Spoken Languages:
English

Statistics

  • 6 Month Streak
  • Revival Level 2
  • Knowledgeable Level 4
  • First Answer

バッジを表示

Content Feed

表示方法

回答済み
When I try to use the function 'magic(n)', Matlab says that the execution of the script magic is not supported
If your magic.m file does not have "function" at the top, then it is a script and not a function. Scripts cannot be passed argu...

約4時間 前 | 0

回答済み
Simulink variable signal size
You cannot change the size of signals during a simulation run. That is what your MATLAB function is doing, trying to add new da...

約7時間 前 | 0

回答済み
How do you create a Stateflow Chart with inputs and outputs being vectors, which change every timestep?
When you add an input or output to a chart block in the Simulink model, you can set the size to something other than -1. But ma...

約7時間 前 | 0

回答済み
How to rotate or mirror the contents in the figure with axes?
Can you re-plot with new y values, y = 500 - y? Basically reverse the order of the y values before plotting.

約7時間 前 | 0

回答済み
Plotting a bird using mathematical equation issue.
The radius values Rk do not seem to be used properly. Are you calling scatter correctly? Looks like maybe you need three argum...

約7時間 前 | 0

回答済み
How to import C++ and Java code into Simulink environment using S function?
You could start here: https://www.mathworks.com/help/matlab/matlab_external/integrate-matlab-with-external-programming-language...

1日 前 | 0

回答済み
read multiple .csv files in 'for loop', extract and write data to .txt
So building on Stephen's comment. You may also get better results using readmatrix or readtable than xlsread. % Read multiple ...

1日 前 | 0

回答済み
I'm trying to display a 2D table
To read the rows and columns of a two dimensional table you need to use two indices: In your example: tableau(1,1) == 1 tab...

1日 前 | 1

| 採用済み

回答済み
Simple question but i can't do it i just started using matlab
x = 1:5; a = 2; y = a.^x; plot(x, y);

1日 前 | 0

| 採用済み

回答済み
Get the displacement component which is perpendicular to the triangle (finite element)
d1 = [0.000131475 -0.000706995 0.000754736] You can make one of the vectors the origin by subtracting it from the other two, t...

9日 前 | 1

| 採用済み

回答済み
Parameter and constant management for embedded coder
You should look over the examples included for Embedded Coder. There are some dealing with tunable parameters. Usually you nee...

9日 前 | 0

回答済み
Could somebody help me to implement an algorithm with stateflow?
Please start with the Stateflow Onramp Training on the Mathworks website. Then try to implement your algorithm and if you have ...

16日 前 | 0

回答済み
hermetic compressor simulation using simulink
You can start with the Simulink Onramp training on the Mathworks website. Then attempt to apply what you have learned to the pr...

16日 前 | 0

回答済み
Problem in Signal Processing in MATLAB Course
What licenses do you have? The task seems to be trying to find Coder products which are not commonly used in student classes. ...

16日 前 | 0

| 採用済み

回答済み
looping in all audio files
dir('*.wav') will return a struct containing all the audio file names. Then you can pass the name field of each element of that...

約2ヶ月 前 | 0

回答済み
Is it possible to inline Code Gen of top level Simulink model containing model references?
For generating C or C++ code using Embedded Coder, if you right click on the subsystem block, go to Block Parameters, and go to ...

約2ヶ月 前 | 0

回答済み
alignment of images - is there no function to align control points?
Your control points do not match up, and the last control point actually does not appear in the distorted image.

約2ヶ月 前 | 0

| 採用済み

回答済み
Wind gust modeling on Simulink...
The Aerospace Blockset has a variety of blocks for wind modeling, and discrete wind gusts per the MIL-F-8785C specification is o...

約2ヶ月 前 | 0

回答済み
How do I extract fixed-width columns from a file that includes empty spaces?
Use the import data tool and configure the delimiter options to use space and treat multiple delimiters as one. You can generat...

約2ヶ月 前 | 0

回答済み
Convert Video to lower quality file
You use VideoWriter to write out to an output video, like in this example: https://www.mathworks.com/help/matlab/import_export/...

約2ヶ月 前 | 0

回答済み
Simulink bus object modification from Matlab script
This article explains some ways of modifying the model workspace. If you have more specific questions please ask them and post ...

約2ヶ月 前 | 0

回答済み
How do i read a line after a word in a csv file
This could be a good example of using splitapply after reading in the entire dataset as a table. See this article: https://w...

約2ヶ月 前 | 0

| 採用済み

回答済み
Number of peaks in the interval
Use MinPeakHeight as the parameter name for findpeaks. You do not show the definition of locsI or psk in your sample code.

約2ヶ月 前 | 0

回答済み
Code generator does not create appropriate .h files for Simulink model
Could the output or example folder be read only?

約2ヶ月 前 | 0

回答済み
How to calculate the total length of all the lines in this image (with grid)?
You can use colorThresholder to help isolate the red pixels and then simply count all of them in the resulting mask image using ...

約2ヶ月 前 | 0

回答済み
Live webcam with histogram ?
Have you tried this example for acquiring an image: https://www.mathworks.com/help/supportpkg/usbwebcams/ug/acquiring-a-singl...

約2ヶ月 前 | 0

| 採用済み

回答済み
Fourier series fit to a periodic function with multiple frequencies
Try looking over the documentation of the fft in MATLAB, along with the examples included there. If you have more specific ques...

約2ヶ月 前 | 0

回答済み
Video Writer for cycle detection
You can use frame2im(getframe(gcf)) to get an image that has the result of imshow and viscircles together.

約2ヶ月 前 | 0

| 採用済み

回答済み
Parallel for loop problem
You may want to review this thread and use parfeval if the partial results option is something you want. https://www.mathwork...

約2ヶ月 前 | 0

回答済み
Risk Matrix in MATlab
This is getting pretty close: %Define risk matrix 1-3 (1 low - 2 medium - 3 severe) C=[2 3 3 3 3 3; 2 2 3 3 3 3; 1...

約2ヶ月 前 | 1

| 採用済み

もっと読み込む