Answered
Code ran fine previously but now says 'out of memory'
There is one possibility: If you have configured Preferences -> MATLAB -> Workspace -> MATLAB array size limit to be off, then...

3 years ago | 0

| accepted

Answered
solve ode with ode45
dr = 0.2 1 2 That is not valid MATLAB syntax. n is not defined. Your dr looks like it is trying to be a vector of length 3, s...

3 years ago | 0

Answered
How to plot a map using GPS coordinates-mainly show the survey line!
See axesm and plotm You could also use mapshow and see also geoshow

3 years ago | 0

Answered
How can I label each colorbar axis from a list, using subplot axis inside a for loop?
c.Label.String = "$\rm{D_{a_{" + l{jj} + "}}}$";

3 years ago | 1

| accepted

Answered
Not enough input arguments for multivariable function when using bayesopt.
bayesopt fun accepts x, a 1-by-D table of variable values, and returns objective, a real scalar representing the objective func...

3 years ago | 0

Answered
unable to overcome syn_sin error message
You probably want: if nargin<4 give an error message if nargin == 4 set tstart = 0 Your current code does not allow 6 or more...

3 years ago | 0

Answered
Parallelizing For Loops - Issue
It looks like it is not treating modelG as a local variable. That implies that there is a reference to modelG either before the ...

3 years ago | 1

Answered
Convert the contents of C:\WINDOWSSYSTEM32\cmc into a text file and open in Matlab
cmd.exe is the Windows command shell, which absolutely will not contain anything pertaining to the fortran program you are runni...

3 years ago | 1

Answered
I can not solve the errors
If the intent is to replicate the entries then true_data = true_velocity_model(:) * ones(1, M); That would be 3 x 1 * 1 x 21 w...

3 years ago | 0

Answered
colormap I need have the color of the 0 explicit
This cannot be done through colormap. Colormaps use slots of equal width. The color stored in a slot is not required to be uni...

3 years ago | 0

Answered
Does this work to parse through folders and take out the contents and remove the folder?
if currentItem.isdir [~, name, ext] = fileparts(currentItem.name); if any(strcmpi([ext, name], fileExtensi...

3 years ago | 0

Answered
New toolbox not listed in installation options
There are two MATLAB installers. The installer that you get by downloading directly from https://www.mathworks.com/downloads/ k...

3 years ago | 0

Answered
I have a dicom file and I want to play a video from it.
That facility is new in R2023a, the release after you are using. In your release you would have to repeatedly extractFrame -- o...

3 years ago | 0

| accepted

Answered
Why do the lines break apart and crack in my plot?
It looks like this is something that will be fixed in the upcoming R2023b which should likely be released this week or next.

3 years ago | 0

| accepted

Answered
matlab editor to simulink communication
Write x and y into the base workspace, and use a From Workspace block in the model, which you would invoke using sim() However,...

3 years ago | 0

Answered
how to read in unequal columns from an excel sheet
readtable() to read all entries together. Then take one variable at a time and trim off trailing empty entries. Or possibly mul...

3 years ago | 0

Answered
When is the official release for MATLAB for Silicon Macs?
Mathworks does not pre-announce release dates. Based on historical precedent, R2023b will most likely be released within the n...

3 years ago | 1

Answered
Read a binary file with many type of data (Int64-int32-int64-int32....)
fid = fopen('filename'); H1 = fread(fid, 1, '*uint64'); H2 = fread(fid, 1, '*uint32'); H3 = fread(fid, 1, '*uint64'); H4 =...

3 years ago | 0

Answered
bwconncomp reports only one connected component when there are obviously many hundreds
load imt2 M = false(size(imt2)); M(end/2,end/2,end/2) = true; OUT = bwdistgeodesic(imt2, M, 'cityblock'); MMM=(isnan(OUT) ...

3 years ago | 1

Answered
How to supress the output of the taskkill command?
Try ans=system('taskkill /F /IM "CST DESIGN ENVIRONMENT_AMD64.exe" > NUL 2>&1');

3 years ago | 0

Answered
How to know the pixel size(width, length, height)
You do not know those based on that data array. The only possible way to figure it out would be if somewhere inside the data arr...

3 years ago | 0

Answered
How to use disp in matlab?
disp('Solutions for f''''(x) = 0:'); disp("Solutions for f''(x) = 0:"); That is, inside a ' ' (apostrophe) delimited character...

3 years ago | 0

| accepted

Answered
how can i solve and draw this differential equation in MATLAB (x'2= c*x1 +d*x2 - x1*x3 + x5) that (') mean first differential equation
Using a guess about what the equation is: syms y(x) c d dy = diff(y); d2y = diff(dy); LHS = d2y; RHS = c*x^1 + d*x^2 - x^1 ...

3 years ago | 0

Answered
weighted variable on a satellite
clear all we can be certain after that, that there are no "left-over" variables in the workspace -- that any variables not defi...

3 years ago | 0

Answered
Download list of zip data from .meta4 file extension
I find information that indicates that .meta4 files are XML files. As such you could potentially read them using xmlread or the ...

3 years ago | 0

Answered
ploting Mitagg leffler function
I suggest that you look in the File Exchange. I see at least 4 contributions for calculating Mittag Leffler function. https://w...

3 years ago | 0

Answered
series computing is faster than parallel computing using parfor
Suppose you have a bunch of envelopes to address and a list of places to address them to. Now consider: Scenario A (serial) yo...

3 years ago | 0

Answered
I want to convert few equations into matrix form >>>>>>
I recommend that you examine the work-flow of the first example of odeFunction as that shows converting orders and gathering ter...

3 years ago | 0

Answered
Write a MATLAB code where I'll show the plot or graph.
x = rand() * 2 y = @(t) -42*x + 53; T = linspace(-3, 3); for idx = 1 : length(T) Y(idx) = y(T(idx)); end plot(T, Y) y...

3 years ago | 0

Answered
my code doesnt run because the sizes are different
This code will fail when it gets to the plotting section, as the plotting section assumes that at least 158 files have been read...

3 years ago | 0

Load more