已回答
How to plot matrix to color band
X=[1, 2, 1, 3, 2, 1, 4, 2, 1, 3 ;... 2, 1, 1, 3, 6, 2, 4, 3, 2, 1;... 4, 1, 7, 2, 4, 3, 2, 4, 1, 2;... 2, 1, 5, 7, 5, 6, 7...

2 years 前 | 0

| 已接受

已回答
Plot electric field in plane
Hi! Perhaps this: clear close all Elec_F = readmatrix('data.txt') ; x = Elec_F(:, 1) ; y = Elec_F(:, 2) ; z = Elec_F(:,...

2 years 前 | 1

已回答
Using to the 'fill' function to plot a filled polygon that are confidence intervals
Hi! patch function is an option, maybe there are other ways to do this. Perhaps this: x = (data(:1)); %x-axis data, 1 x 16 d...

2 years 前 | 0

已回答
Can anyone please help me in correcting the code for ns vs thickness AlN
Hi! Please learn how to use for loops ... doc for The code below plots a graph similar to the one you attached, bmaybe stil...

2 years 前 | 1

| 已接受

已回答
Segment pink color spots from image
Hi! I recommend to use Color Thresholder. Workflow I used to get the pink color spots (picture attached) using the app is as ...

2 years 前 | 2

已回答
how to import drivingScenario object into DrivingScenarioDesigner?
Hi ! Pass the scenario you have designed programmatically to the drivingScenarioDesigner. drivingScenarioDesigner(yourScenar...

2 years 前 | 0

| 已接受

已回答
License server problems in recent releases for Mac OS
Hi! In this case , I would recommend to contact MathWorks Suppport: https://www.mathworks.com/support/contact_us.html?s_tid=s...

2 years 前 | 0

已回答
Input capture simulink arduino
Hi! This block was introduced in R2020b, but first you need to install the Add-On Simulink Support Package for Arduino Hardware...

2 years 前 | 0

| 已接受

已回答
lm having a problem with code for dispersion when ever l try to run, it say the variable 'dispersion' in line 20 is changing the size of every loop so how do l solve this
Hi! I beleive that s only a warning, to avoid it preallocate for Disperssion variable. Demo: Without preallocation : A =...

2 years 前 | 0

| 已接受

已回答
How to get inverse discrete time Fourier transform (IDTFT) of an array?
Hi! Are you trying to implement DFT and its IDFT based on their equations ? There are optimized algorithms to calculate these...

2 years 前 | 0

| 已接受

已解决


Make a Plot with Functions
Make a plot and test

2 years 前

已解决


Solve a System of Linear Equations
Example: If a system of linear equations in x₁ and x₂ is: 2x₁ + x₂ = 2 x₁ - 4 x₂ = 3 Then the coefficient matrix (A) is: 2 ...

2 years 前

已解决


Calculate Amount of Cake Frosting
Given two input variables r and h, which stand for the radius and height of a cake, calculate the surface area of the cake you n...

2 years 前

已解决


Chess probability
The difference in the ratings between two players serves as a predictor of the outcome of a match (the <http://en.wikipedia.org/...

2 years 前

已回答
2D plot with linked Nan values
Hi! Perhaps the below code works for you: clear close all % Creating dummy data latitude = 1:32 ; sodium = rand(1,32) ; ...

2 years 前 | 0

| 已接受

已回答
Why does keyboard shortcuts like ctrl+A, ctrl+c, ctrl+v, ctrl+f etc. does not work on MATLAB (on Linux platform)?
Hi! I had the same issue and this is how I fixed it: MATLAB toolstrip >> Home >> Preferences >> Keyboard >> Shortcuts, set the...

2 years 前 | 5

| 已接受

已回答
Plotting timeseries data with quality control
Hi! Below a code with 2 solutions, pick the one you believe answers your question better: clear close all % Putting your d...

2 years 前 | 0

已回答
Plot figure for certain elements of readtable output
Hi! As per my understading of your question, the code below should work: %% Create table with 2 variables (Log and Lat) data ...

2 years 前 | 0

已回答
filtering data inside a table and storing multiple tables in one big table
Hi! 'After reading some data files where each file contains data stored in a table' >> EDP has only one table !! Assuming you...

2 years 前 | 0

已回答
I need to add this equation in simulink
Hi ! To implement x^3: use math block, open the block and change function to pow . To implement |x| , use abs block Hope thi...

2 years 前 | 0

已回答
how do i plot 3 sets of data using different colors based on one data set
Hi! Since you did not share your data to test .. I am creating some dummy ! clear close all % Create some sample data: time...

2 years 前 | 0

已回答
how to import asc.gz into matlab
For .gz file, you can use gunzip Some examples can be found in this documentation page: https://www.mathworks.com/help/matlab...

2 years 前 | 0

已回答
Can't load file from path (MacOS) ?
Hi Bioprinting WOS.txt file name has a space in between. LOad function will not work in this case. You can rename the file...

2 years 前 | 1

| 已接受

已回答
How to use xline?
Hi! Try this sig = rand(1,10000) ; x = [1648 2871 4022 6216 7327 8416] ; figure plot(sig); hold on xline(x, '--r') Hope...

2 years 前 | 0

已回答
How to find the nearest matrix between two matrices?
clear A = [2013,3,17,1,6,0]; % 1x6 double B = [2013,3,17,0,5,1.012; 2013,3,17,1,6,20.47]; % 4x6 double A = datetime(A) ; B...

2 years 前 | 0

已回答
How to convert table with datetime in numeric (seconds)
Hi! Try this: load Zeitt.mat time_sec = seconds(Zeitt.Time - Zeitt.Time(1)) Hope this helps

2 years 前 | 0

| 已接受

已回答
How to add columns with fixed values to their exact position in the table
Hi, Use addvars instead of dot notation to add columns to your table. Demo: load patients T = table(Age,Gender,Smoker) ; ...

2 years 前 | 0

| 已接受

已回答
Find a specific value in a csv file
Hi! Try this: % Create, split, and extract from part 1 part1 = "A/1/2/" + string(2022:-1:2018) ; part1 = split(part1, '/')...

2 years 前 | 0

已回答
System of 4 non-linear equations yields Empty sym: 0-by-1
Hi! Make sure to recheck equations parentheses. clear % parameters I_sc = 0.473; V_oc = 2.6; V_m = 2.32; I_m = 0.455; ...

2 years 前 | 0

已回答
get specific magnitude response value given a specific frequency from a freqz graph
Hi! Try this: % Since you did not share Hz, I am loading tfData.mat load('tfData.mat','sys1'); Hz = sys1 ; [b, a] = tfda...

2 years 前 | 0

| 已接受

加载更多