Answered
Auto Populate PPT Slides without using MATLAB Report Generator
One of the formats that the publish function states it supports as the output format is .ppt (Microsoft PowerPoint.)

3 years ago | 0

Answered
Variable within a Variable
Am I correct that you're hoping to have the variable that stores the file name be file1 at the second iteration, file2 at the th...

3 years ago | 0

| accepted

Answered
MFE Toolbox Kevin Sheppard Installation Problem
From the error message it looks like that function is using a syntax for fmincon that has been discouraged for several years (an...

3 years ago | 0

Answered
How to call function from one function .m file to another function .m file?
The import function doesn't "globally import" so if your functions are in packages you need to either use the package name or im...

3 years ago | 1

Answered
How can I extract data from the following Matlab figure, there are multiple lines.
One easy way to do this is to store the handles to the lines as you plot them. Before your loop preallocate an array to hold the...

3 years ago | 0

Answered
A really, really strange situation (the same two copies of code on the same computer with the same version of matlab running at very different times)
Just a couple comments / ideas. clear; clc; close all function []=Ewald_Zero_Seek_1() clear;clc;close all Get rid of the sec...

3 years ago | 1

Answered
Error "Argument to dynamic structure reference must evaluate to a valid field name." What did I wrong?
(C*log.(T)) You have an unnecessary . here.

3 years ago | 0

Answered
Documentation for mean function
You're not taking the mean of the cell array. That construct, [C{:}], creates a comma-separated list from the cell array and con...

3 years ago | 0

| accepted

Answered
find 'last' function not working
Another possible solution, beyond calling find with two output arguments, is to call it with one output then convert the linear ...

3 years ago | 0

Answered
How to make discrete pcolor x-axis with no gaps between datapoints?
So instead of doing something like plotting data points with their actual X coordinates: v = 1:10; x = v.^2; stem(x, v) You ...

3 years ago | 0

| accepted

Answered
simplifying kinda-eye matrix of NxN, how?
To build A from alp use reshape and transpose. To build t from A use blkdiag.

3 years ago | 0

Answered
Error in eli (line 8) rad=input('enter') >> eli Attempt to execute SCRIPT input as a function: C:\Users\HP Pavilion G6\OneDrive\Documents\MATLAB\input.m Error in eli (line
You've written your own input.m that prevents MATLAB from calling the input function included with MATLAB. Rename or remove the ...

3 years ago | 0

Answered
Can a software company use the thingspeak API to setup a user's channel for them.
If you're asking from a technical standpoint, I haven't tried this myself but I believe you should be able to create channels us...

3 years ago | 0

Answered
Plotting image and data changes y-axis direction. Why and how to fix this?
From the "More About" section on the documentation page for the image function: "The image function has two versions, the high-...

3 years ago | 0

Answered
how to make symbolic variable by loop as we want
so, can i assume that in matlab there is no method for creating symbolic variable by only known is no of variables. Sure there ...

3 years ago | 0

| accepted

Answered
Saving to .mat without additional struct.
When you save the struct array, specify the '-struct' option. This will save each of the struct fields separately in the MAT-fil...

3 years ago | 1

| accepted

Answered
This supposed solver does not work. What am I missing?
From the fact that the error is being thrown on line 1 of your file, I'm guessing you haven't defined the variable x. The messag...

3 years ago | 0

Answered
Problem with splitapply (bin averaging)
If I'm correct, if you called histcounts without ignoring the first output argument that output argument would contain a 0, indi...

3 years ago | 1

Answered
I want to integrate this function but I keep getting errors
yy = @(aa) integral(cos(aa)/sqrt(cos(o)-cos(aa)),aa, pi/2); When you call this function handle it will attempt to evaluate the ...

3 years ago | 0

Answered
Unrecognized function using PDE toolbox
According to the addCell documentation page, the input arguments you pass into addCell must be a "3-D geometry, specified as a D...

3 years ago | 0

Answered
How to understand and apply arrayfun - getting intuition beyond the documentation.
Here's your original code: X = [1, 12; 1, 13; 1, 12; 2, 4; 2, 4; 2, 4; 3, 9; 3, 9; 3, 9]; L = X(:,1); U = unique(L); % Define...

3 years ago | 1

| accepted

Answered
Generate an 8-day datetime array between 2010 and 2021 which resets the 8-day count at the beginning of each year
Let's start with a row vector of January 1sts. Jan1st = datetime(2010:2021, 1, 1); We want to compute a vector of days for eac...

3 years ago | 0

| accepted

Answered
extract data from one day from a timetable
Use a timerange. First generate some sample data with datetime values representing random hours in July 2022. rng default % for...

3 years ago | 1

Answered
Matrix formulation with matrix multiplication and raising to N-power
If your B is in fact a 2-by-1 vector: B = [0.005; 0.1] then you cannot concatenate it horizontally with 0 as they don't have t...

3 years ago | 0

| accepted

Answered
How to make assert() debug break?
Based on Jan's description (I have not read the code) you'd also want to think about what this does if you call assert1 at the M...

3 years ago | 1

| accepted

Answered
100% CPU usage on Windows 7 for R2022a
The System Requirements page lists the supported Windows operating systems for release R2022a as Windows 11, Windows 10 (version...

3 years ago | 0

Answered
How to create a surface from node coordinates and face indexes?
Does the trimesh function do what you want? Alternately take a look at the griddata function and then the isosurface or contour...

3 years ago | 0

Answered
How to return empty vector of figures
Preallocate the array using gobjects. F = gobjects(1, 3) F(2) = figure; F To check if an element has been filled in, ask if ...

3 years ago | 0

Answered
Data splitting and saving to different variables
Can you dynamically create variables with numbered names like x1, x2, x3, etc.? Yes. Should you do this? The general consensus ...

3 years ago | 0

Load more