Answered
Rotating DICOM file around z-axis
Y is uint16 while Rz is double. However, converting Y to double will just lead to a dimension error with your matrix multiplicat...

21 dagen ago | 0

Answered
turn plot into a polyfit or polyval
In your figure window, select Tools > Basic Fitting Use the UI to find an appropriate fit to your data. Once done, export the r...

21 dagen ago | 0

Answered
Create 3D geometry by revolve (e.g. a cone) for use in the partial differential equation toolbox
Perhaps not the answer you are looking for, but I've found it easiest to create my geometries in other tools, and then import an...

21 dagen ago | 0

| accepted

Answered
Problem Using ode45 Function
The error I see is that you have not defined the inputs to your ode function in the correct order. Namely, t must be the first i...

21 dagen ago | 0

Answered
How to save data to existing excel file
Try using readtable and writetable.

22 dagen ago | 0

Answered
Generate 3D plots using 3D variables (Lat,lon,depth,Salinity)
surfc and contour3 do not accept 3D variables as inputs. See here: https://www.mathworks.com/help/matlab/ref/surfc.html#mw_bf4...

22 dagen ago | 1

| accepted

Answered
How to create different Plots for different functions while each function has been plotted using hold on
Perhaps what you need is to create a plot with two y axes, one for entropy and the other for enthalpy? If so, use yyaxis. x = l...

22 dagen ago | 1

Answered
Finding daily min and max values for time series data
Use groupsummary and group the data by 'day' and the method set to max and min. See this answer: https://www.mathworks.com/matl...

22 dagen ago | 0

| accepted

Answered
Facing difficulty in finding the error saying Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters."
You are trying to index a function input variable in the function declaration. This is not allowed. Instead, create a new variab...

22 dagen ago | 0

Answered
Reconstructed Pulse Out of Phase
I'm not an FFT expert, but it appears to be related to your value of n. At least the shift goes away when I use L instead (seeth...

23 dagen ago | 1

Answered
problem with colorbar in using scatter3
First, the error is not related to colorbar. It is an error occurring with scatter3, specifically the format of your ColorVariab...

23 dagen ago | 0

| accepted

Answered
I can't unistall MATLAB R2021b
See this answer https://www.mathworks.com/matlabcentral/answers/92244-how-do-i-uninstall-matlab-on-windows-when-the-uninstaller...

26 dagen ago | 1

| accepted

Answered
Stateflow Onramp section 4.3 chart symbols correctly defined failure
I think you should only have 1 buttonPressed item in your Symbols panel.

27 dagen ago | 0

Answered
transparent grey bar on graphs
Use patch, and plot the line after the patch. x=0:.1:5; y=(x-2).^3; patch([0 5 5 0],[0 0 4 4],[.75 .75 .75]) hold on plot(y...

27 dagen ago | 0

| accepted

Answered
Fix the error with "Error using urlread'
Assuming you are trying to run the example_nlc demo files that come with APM, I was unable to duplicate your error. Is your path...

27 dagen ago | 0

Answered
How can i create a loop to generate daily averages from a csv. file for over four years and whose data was input at a 15minutes interval?
Use groupsummary and group the data by 'monthofyear' and 'dayofmonth' and the method set to mean. See this answer: https://www....

28 dagen ago | 0

| accepted

Answered
How to index the matrix only the first dimension of the rest
It depends what you want the ouput dimensions to be. If you just want them in a vector, then you can just use a single colon. A...

28 dagen ago | 0

Answered
I would like to learn how to code
Your title is 'I would like to learn how to code'. To answer that question, I would direct you to MATLAB Onramp. Once completed...

29 dagen ago | 0

Answered
Convert signals of a mf4 file to double variables
Perhaps this example is helpful? https://www.mathworks.com/help/vnt/ug/reading-data-from-mdf-files.html

29 dagen ago | 0

Answered
How can I find the peak values of a curve?
If you are using a live script, I suggest using the Find Local Extrema task. You can see an introduction to this tool in this re...

29 dagen ago | 1

Answered
Using interp1 with semilog dataset
You do not need to take account of the fact that you are plotting your data in a semilog plot. That doesn't impact how you would...

29 dagen ago | 1

| accepted

Answered
Unable to perform assignment because the left and right sides have a different number of elements, error
The output of EvaluateIndividual(a,b,functionData) is a 101x2 array. You are trying to assign this to a single element of fitnes...

29 dagen ago | 0

Answered
Colour points in 2d or 3d based on value of another vector
With the scatter function, you can specify the color as a vector of numbers. See this example x = linspace(0,3*pi,200); y = co...

29 dagen ago | 0

| accepted

Answered
Index in position 1 exceeds array bounds. Index must not exceed 1200. i am getting this error.
Position 1 is your row index. Apparently, data only has 1200 rows, and your code is trying to extract row 1201. % simple exampl...

ongeveer een maand ago | 0

Answered
Why are the colours in the legend different?
Legend is consistent with your code. Why do you think it is wrong? Here's an attempt at recreating your plot. Note that I elect...

ongeveer een maand ago | 0

Answered
Plotting using the Bar Function
The error you are getting from Grader is that the values of y1 are incorrect (if you were using the wrong variable name, the err...

ongeveer een maand ago | 0

Answered
Boxplot with scaled x-axis?
Use boxchart and specify the xgroupdata input. boxchart(xgroupdata,ydata) Here's an example that orders and spaces the groups ...

ongeveer een maand ago | 0

Answered
Signal Analyser - Time Values Query for Re-Sampling
It appears the time values you are using contain duplicate values (or maybe NaNs?), which is not allowed. However, yes, you can ...

ongeveer een maand ago | 0

| accepted

Answered
Find differences between 2 tables
You could try using setdiff. If A and B are tables or timetables, then setdiff returns the rows from A that are not in B.

ongeveer een maand ago | 0

Answered
How do I open this example in matlab?
Click the Copy Command button in the top right of the page, then paste it into your Command Window in MATLAB and press Enter.

ongeveer een maand ago | 0

| accepted

Load more