Answered
How to realign PATCH object along with plotted 3D GRAPH network?
See hgtransform and makehgtform You would create a hgtransform() whose parent is the axes, and when you patch() you would tell ...

3 dagar ago | 1

| accepted

Answered
How to remove NaN from matrix / remove the dark blue pixels in the ocean
I suggest you experiment with @John D'Errico FEX contribution https://www.mathworks.com/matlabcentral/fileexchange/4551-inpa...

3 dagar ago | 0

Answered
A bug in MATLAB R2020b on MacOS Ventura; MATLAB code written on Windows 10 is not shown on MacOS Ventura 13.
https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/system-requirements-release-2020b-macinto...

3 dagar ago | 0

| accepted

Answered
Trying to perform Fast Fourier Transform
importdata() can return any of three different data types, depending on the content of the file. If the file is text and has a...

3 dagar ago | 0

Answered
Trying to solve systems of ODEs and graph answer
If you define a symbolic variable and use it in an expression, and later assign a numeric value to the same name, then that does...

3 dagar ago | 1

Answered
val = Empty sym: 0-by-1
%DATA di = 0.04; % m alpha = 12.67; % degree beta = 2.66; % degree Ti = 291.65; % K Pi = 90; % bar Vi = 43.5; % m/s k = 1...

3 dagar ago | 0

Answered
Line 36. Balancing the plot vectors. 'Error using plot Vectors must be the same length.'
for i=2:1+t/dt t is 100 and dt is 0.1. You are *expecting* 100/0.1 to be exactly 1000. However 0.1 cannot be exactly repres...

3 dagar ago | 0

Answered
I am getting the error as "Too many Input arguments", " Failure in Initial Objective function evaluation" .Also unable to run the function vivek1
function y=f(x0) You are defining a function named f that expects zero or one parameter x0=[8,10]; any supplied par...

3 dagar ago | 1

Answered
How to add different colors in particular rows and columns?
I suggest that you use App Designer to create a scrollable uitable with the data. You can then use uistyle to create a color sty...

4 dagar ago | 0

| accepted

Answered
Error using plot, data must be numeric, array convertible to double
syms int_l; int_l is symbolic cost = (2*int_l.^2+4.*(int_l+0.5)*(x2./(int_l.^2)+1))*812.75; cost is in terms of symbolic int_...

4 dagar ago | 0

Answered
I am getting an error in line 4 " myproj('project2.m" how do I fix this?
Change close all; clear all; clc; myproj('project2.m') to myproj('project2.m') Stored in a file that is not named myproj....

4 dagar ago | 0

Answered
fscanf not reading integers
fscanf(food.txt,"i",1) if food is not a defined variable at that point, then that would give you an error about undefined varia...

4 dagar ago | 0

Answered
Getting "Vectors must be same length" when my vectors are (I believe) the same length.
When you plot() multiple sets of data in the same call, each of the sets can be followed by a linespec that can include line sty...

4 dagar ago | 1

| accepted

Answered
MATLAB never works the first time I install an update?
Expiration dates for Campus Wide License (and the older Total Academic Headcount license) are set by the university, not by Math...

4 dagar ago | 0

Answered
ODE45 requires more parameters than it should
Change M = matlabFunction(V,'vars', {'t','Y','A','I','alpha','b','m','B','J','n','c','cr'}) to M = matlabFunction(V, 'vars', ...

4 dagar ago | 0

Answered
fscanf with text file
We recommend readtable() for this purpose. If you use fscanf() then you have the problem that when you mix %s format (for the t...

4 dagar ago | 0

| accepted

Answered
Need to open a large dat. file to read, and then plot, the problem is that when opening and reading the file in MATLAB is not reading all the lines
S = textscan(fileID,'%s %d %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f', 'HeaderLines', 4, 'Delimiter', ','); % HeaderLines...

4 dagar ago | 0

Answered
Is there a way to detect string/letter not compatible with windows-1252 encoding?
Yes. When you unicode2native a character that has no counterpart in the destination character set, then binary 26 is substituted...

4 dagar ago | 0

Answered
How to solve a system of 8 equations having integrals!
Do not use == with integral() . integral() is for numeric integration, and if you use numeric integration returning a numeric va...

4 dagar ago | 1

Answered
differentiating a fit formula
differentiate is specifically designed to differentiate cfit and sfit objects. integrate is designed to integrate cfit objects....

4 dagar ago | 0

| accepted

Answered
how can i solve this error knowing im working on app designer ?and does the input setappdate under a certain library?
You called setappdate with a final e instead of setappdata with a final a

4 dagar ago | 0

Answered
Index in position 1 exceeds array bounds (must not exceed 1).
The main problem was that you did discrtY=dctY; but then did dscrtY(dctY<Nbits)=0; Notice this has no i in the name. The eff...

4 dagar ago | 1

| accepted

Answered
Exact value of a result
No, the calculations are inherently carried out in floating point. If you were to follow along in the source code you could st...

4 dagar ago | 0

Answered
how to calculate for a range of values for different initial conditions
function [theta]=theta_beta_M(beta,M,gamma) % return theta for beta-theta-M relationship for oblique shock if nargin < 1; beta...

4 dagar ago | 0

| accepted

Answered
How can I clear variables in a parallel for loop efficiently?
I investigated clearvars a couple of years ago. It turned out to be rather slow. There was a regexp step involved even when spec...

5 dagar ago | 1

| accepted

Answered
Using ode45 for a varying input and plot t vs x
G_c = int(Mat,0,2) int is always going to return symbolic expression or symbolic function (depending on inputs). But you do not...

5 dagar ago | 0

Answered
can someone plz help me to slove this error please
imnoise "imnoise expects pixel values of data type double and single to be in the range [0, 1]. You can use the rescale functio...

5 dagar ago | 0

Answered
How can I solve this set of equations using the Symbolic Toolbox?
You need to solve for the same number of variables as you have equations.

5 dagar ago | 0

| accepted

Answered
UIAxes error while creating controlchart
use the 'parent' option to pass in the axes

5 dagar ago | 0

Answered
How to take the color grade from one image and apply it to another?
rgb2ind the base image and save the color map. Now rgb2ind the second image and ind2rgb passing in the saved colormap.

6 dagar ago | 1

Load more