回答済み
Why am I unable to produce sound with this code?
for i = 1:songLength noteSound = sin(2*pi*finalNotes(i)*values); sound(finalNotes(i), fs) % pause(1) end You ca...

8ヶ月 前 | 0

| 採用済み

回答済み
plse could some help mi with 57 buss bars code file contingency n-1 i need for my research aim student MSc
matpower supplies a 57 bus file; https://matpower.org/docs/ref/matpower5.0/case57.html Aditya https://www.mathworks.com/matlab...

8ヶ月 前 | 0

回答済み
how can i store the result which i am obtaining on command window and store it on in excel file, i have tried but still not able to solve it out.
If you cannot modify the script for some reason, then change run('start.m'); % my main program to be run for 10 i...

8ヶ月 前 | 0

| 採用済み

回答済み
How to find the coordinates of edge from a figure and plot it on a separate/second figure?
I = imread('myimage.jpg'); %2598x3071x3 uint8 is_occupied = any(I ~= 255,3); B = bwboundaries(is_occupied); %https:/...

8ヶ月 前 | 0

| 採用済み

回答済み
Simulink to workspace doesn't work
Turn off Single Simulation Output; https://www.mathworks.com/help/simulink/gui/singlesimulationoutput.html

8ヶ月 前 | 0

回答済み
Error in Smith chart code. What needs to be corrected? / What should be the correct code? The code was given to me, and it doesn't run on my laptop.
Your version of MATLAB, R2013a, is too old to be able to have function definitions in script files. You will need to move fun...

8ヶ月 前 | 1

回答済み
Code does not update the array for each iteration of for loops
lambi=round((lambi*10^10)/(10^10),-20); Notice the round() covers all of (lambi*10^10)/(10^10) as its first parameter. ...

8ヶ月 前 | 0

| 採用済み

回答済み
how to reload saved ANN model in workspace properly
Suppose that you exported from nftool to the variable named results then net = results.Network;

8ヶ月 前 | 0

回答済み
Index in position 1 exceeds array bounds
Your turbine "Wind speed (m/s)" signal is fed from the port labeled (1) . There are a couple of signal splits that could potenti...

8ヶ月 前 | 0

回答済み
dlgradient throws Value to differentiate is non-scalar. It must be a traced real dlarray scalar.error
[Tt,Tx] = arrayfun(@(Tscalar) dlgradient(Tscalar,t,l), T, 'uniform', 0); Tt and Tx will then be cell arrays the same size of T,...

8ヶ月 前 | 0

| 採用済み

回答済み
I get an error when opening Matlab
Unfortunately you are going to need to reinstall MATLAB. If you have an anti-virus program, you might need to turn it off tempo...

8ヶ月 前 | 0

| 採用済み

回答済み
numerical integral solve for laser energy,S which is a function of z,t?
syms J_abs L_op t_p t z ln2 = log(sym(2)); Pi = sym(pi); S(z,t) = 2/(sqrt(Pi/ln2)) * J_abs / (L_op * t_p) * exp(-z/L_op) * ...

8ヶ月 前 | 0

| 採用済み

回答済み
i have a erorr with echo when i use soundsc command
% Step 1: Load the audio file echo.mat filename = 'echo.mat'; datastruct = load(filename); if ~isfield(datastruct, 'echo') ...

8ヶ月 前 | 0

回答済み
what is the difference between running backgroundPool and parpool ('Threads') using a parfeval?
"Pools created using parpool('Threads') and backgroundPool are both thread-based pools which utilize the same resources. It is p...

8ヶ月 前 | 0

回答済み
Error using .* Matrix dimensions must agree.
integral2() passes in 2D arrays of variable but equal size to the function handle. For example one time it might pass in a pair ...

8ヶ月 前 | 0

| 採用済み

回答済み
How do I extract mean values for specific months from my sst data?
If you convert the data into a timetable object then you could use timerange to select rows by date, as described at https://www...

8ヶ月 前 | 0

回答済み
Tune FIS with Training Data
After if runtunefis fisout1 = tunefis(fisin,[],trnX,trnY,options); %#ok and before the else there is an implied sa...

8ヶ月 前 | 1

回答済み
How to enable Editor data tips when editing functions (not scripts, not debugging)?
If you are not executing a function, then it has no workspace to hold values, so data tips inside the editted function would not...

8ヶ月 前 | 0

回答済み
Plotting Vector Field for F(x,y,z) = (x+y+z)/(x^2+y^2+z^2)^1.5
clear all [x, y, z] = meshgrid(-50:1:50,-50:1:50,-50:1:50); i = 1/(x.^2+y.^2+z.^2).^(3/2); j = 1/(x.^2+y.^2+z.^2).^(3/2); k ...

8ヶ月 前 | 0

| 採用済み

回答済み
Standalone compiler (Mabtlab 2022a) integrating Yalmip can't find the solvers
use the function pragma https://www.mathworks.com/help/compiler/function.html to name the solver as being used. The problem i...

8ヶ月 前 | 0

回答済み
アップデートをしていくうえで最新版との違いについて
R2020a no longer appears on the Platform Road Map https://www.mathworks.com/support/requirements/platform-road-map.html Howeve...

8ヶ月 前 | 0

回答済み
calculate a derivative on a graph
There are two steps: First you have to extract x and y data from the graph. If the graph is in the form of an image, then extra...

8ヶ月 前 | 0

回答済み
Looping, or running the LSPIV.m code (from github) on all the files in a folder
[fname,pathname]=uigetfile('*.TIF','pick a linescan file');%loads file If you set the Multiselect option, then the output varia...

8ヶ月 前 | 0

回答済み
I want to add random impulse noise to an audio signal, But the dimensions of input audio and noise audio both are different and that's why they are not getting added.
[y, Fs] = audioread("teste_01.wav"); That will return a 2D array, with the columns being channels (one channel would still be a...

8ヶ月 前 | 0

| 採用済み

回答済み
Find first row where the first 10 elements of that row are unique from each other
row_has_10_unique = all(diff(sort(x(:,1:10)),2) > 0,2);

8ヶ月 前 | 0

回答済み
The Matlab always crash on macOS Sonama14 when I close a figure.
Discussion is at https://www.mathworks.com/matlabcentral/answers/2027964-matlab-crash-on-sonoma-macos-14-0?s_tid=srchtitle The...

8ヶ月 前 | 0

回答済み
Solving double Integral with syms variables and matrices
The answer is "NO", no-one can help you solve that integral to get a scalar result. Given column vectors, the result of the inte...

8ヶ月 前 | 0

回答済み
How pathetic is this Software Matlab? I regret ever putting my hands into it.
Like any commercial company, Mathworks has existed for a finite time, and has finite resources to program, test, debug, and docu...

8ヶ月 前 | 0

回答済み
Plotting issue where the curve is missing
Phi_b = (1 - 0.9307) *491390.8868; That is a scalar constant time = 0:0.1:17; vector plot(Phi_b, time, 'LineWidth', 2); The...

8ヶ月 前 | 2

さらに読み込む