Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [matlab]

MATLAB is a high-level language and interactive programming environment for numerical computation and visualization developed by MathWorks. Don’t use both the [matlab] and [octave] tags, unless the question is explicitly about the similarities or differences between the two. When using this tag, please mention the MATLAB release you're working with (e.g. R2017a).

matlab
0 votes
0 answers
25 views

Python griddata() and Matlab griddata(): different results at some grid points

While converting some (pretty big physics) Matlab code to Python, I have stumbled upon this situation. Python/Scipy's griddata() function gives different results than Matlab's counterpart griddata() ...
Lit_try's user avatar
0 votes
0 answers
36 views

Error using Eigen: "mismatched types" with scalar vector multiplication

I am trying to perform the following operation from MATLAB using Eigen matrices in C++. Given an example in MATLAB: clearvars; clc; close all; Nx = 8; Ny = 8; Lx=2*pi; dx = Lx/Nx; Vec = fftshift(-Nx/...
Mathew77's user avatar
0 votes
0 answers
7 views

What is the reason why flxible function in SPM-based restplus in matlab does not work

enter image description here enter image description here The pipeline function in restplus, the spm-based preprocessing software in matlab, cannot be used. When flexibe is selected, the file source ...
子丶非鱼Zzz's user avatar
2 votes
1 answer
12 views

Matlab inputparser catches wrong input with the same leading characters

This test function returns the square of the input, and can add an optional offset when supplied as a name-value input. function out=test_parser(a,varargin) % parse inputs parser=inputParser; ...
Abhranil Das's user avatar
  • 5,888
0 votes
1 answer
48 views

Why am I not getting faster computations when I increase my EC2 vCPUs? [closed]

I have to run a code on MATLAB that I can't optimize so I have to increase my computational power. The code already uses parallel processing. I have installed MATLAB both on Ubuntu and Windows on AWS ...
9id9's user avatar
  • 19
-1 votes
0 answers
18 views

temperature monitoring system with real time using matlab and python

I have a machine learning model python code it is given next second predicted temperature. i want to add that temperature to the matlab simulink as a input in real time. when the python code is ...
Dilshan Sevinda's user avatar
2 votes
1 answer
26 views

MATLAB does not read parquet file, simply says "Unable to read Parquet file". How can I still read it?

I have created a parquet file using Python polars' .write_parquet method. It can be read back by Python without a problem and MATLAB can also read the information about the file using parquetinfo ...
Saaru Lindestøkke's user avatar
0 votes
0 answers
32 views

Is there an equivalent function for MATLAB's bwskel in Python?

I am working with a mask of a cell, and want to skeletonize it in Python exactly as it is done in MATLAB. The code in MATLAB is: I3A = bwskel(logical(I3A)); while in Python I am using I3A = ...
msshah's user avatar
  • 19
0 votes
0 answers
25 views

Lag-time correction between two .mat dayfiles with one taken as reference

So I'm working on creating a MATLAB script for the lag-time correction of several .mat files with the second set taken as reference. The .mat files come from two spectrometers that sample at 10 (LGR) ...
Shahid Naqui's user avatar
0 votes
0 answers
17 views

How to Implementing Conditional Code Generation in Simulink Using S-Function Blocks and C Preprocessor Directives

Has anyone worked with Simulink where you're using an S-function block to pass arguments to a C file. and then using those arguments in the C file to create preprocessor (#if) directives for ...
ABDELBASSEt BIAZ's user avatar
0 votes
1 answer
28 views

How can I reproduce Matlab file reading with Python and Numpy for decoding a .dat file?

I have a Matlab script that reads an encoded .dat file, decodes it and saves it. I was trying to translate this into Python using numpy. I've found that for the same file, I get different output ...
gunk's user avatar
  • 11
-3 votes
0 answers
17 views

Ask for help,Code issues with LDPC-BICM-ID [closed]

The code I used is that:https://github.com/wvu-wcrl/CML,Has anyone used this code? I would like to ask how to draw the EXIT curve of ldpc and how to set the number of internal iterations of LDPC I ...
dechuanren long's user avatar
0 votes
0 answers
36 views

Identifying eigenvalues for stability analysis [closed]

I have two 7x7 matrices and I would like to know how to calculate their eigenvalues. Could I divide them into smaller blocks, or is there another mathematical method to achieve this? When I attempted ...
Marwa's user avatar
  • 1
0 votes
0 answers
11 views

solving the dual optimization Problem of SVR using quadprog

Could someone please take a look at my code and verify if the H matrix, w, and b are correct? I'm working on a project and want to ensure these components are accurate. Your help would be greatly ...
Prof.Applied Maths's user avatar
-2 votes
0 answers
21 views

i simulink model article bacse but i didt right or not right

I am an electrical engineering student and I had to model an AGC based on an article which I have put the links here as well, [link1 shows the model which I have designed using MATLAB based on the ...
CPF Group's user avatar

15 30 50 per page
1
2 3 4 5
6335