Community Profile

# Daigo

Last seen: 2 days ago Active since 2021

Programming Languages:
MATLAB
Spoken Languages:
English

All

#### Content Feed

View by

Question

Where can I find details about 'wind' data in MATLAB?
If you use the command below, you can load three dimensional wind data but I cannot find any details about it. data = load('w...

3 months ago | 0 answers | 0

### 0

Question

How to take meshgrid of latitude and longitude as an input in Horizontal Wind Model 07?
Hello, I'm a beginner of Simulink. I'm trying to get a wind distribution over a certain area (latitude: , longitude: ) at specif...

3 months ago | 0 answers | 0

### 0

Question

How to prevent the elongated plot when using tiled layout for image and plot
When I align an image and a plot in tiled layout, the plot tends to become "elongated" as shown in an example below. Is there an...

4 months ago | 1 answer | 0

### 1

Question

Fastest way for page-wise computation - FOR vs ARRAYFUN vs PAGEFUN
I'd like to know the fastest way to deal with a 3D array in a page-wise way. Suppose I have the following data: rng(0); data...

11 months ago | 0 answers | 0

### 0

Question

Randomness is lost in parfor loop on GPU?
I have a code with a following structure: % my_code_seed#.m myoutputs1 = my_function1(myinputs1); seed = #; rng(seed); ...

11 months ago | 1 answer | 0

### 1

Question

How to use a code that uses FFTW in MATLAB?
I have a slow MATLAB code that consists of many helper functions. The bottleneck seems to be one helper function that heavily us...

12 months ago | 1 answer | 0

### 1

Question

GPU MEX not compatible with GPU with compute capability '3.0'?
Hi, I'm trying to set up the prerequisites for the GPU Coder. In the MATLAB Command Window, I entered: gpuEnvObj = coder.gpuEn...

12 months ago | 1 answer | 0

### 1

Question

GPU Coder: compilation error
I am trying to create a MEX function from the following simple function: function G = ft2(g, delta) % Input % - g: ...

12 months ago | 1 answer | 0

### 1

Question

Build error in GPU coder - nvcc fatal: Cannot find compiler 'cl.exe' in PATH
I'd like to create a MEX function from my MATLAB function that has an gpuArray input. I used the GPU Coder but I got an error wh...

12 months ago | 0 answers | 0

### 0

Question

Error in the integration result
Given the joint p.d.f.: for -\infty < x, y < \infty I'm trying to compute the expected value: by the following code: syms ...

1 year ago | 1 answer | 0

### 1

Question

Swapped row and column output from ind2sub function?
I want to plot a matrix as an image and show a pixel value at corresponding point of an image. Here is a simple example. Im0 =...

1 year ago | 1 answer | 0

### 1

Question

Error when saving a profile result - "Error using startsWith"
I simply want to save my profile result by the following code: p = profile("info"); profsave(p,"profiler1"); However, I got ...

1 year ago | 1 answer | 0

### 1

Question

I need help in configuring Git Credential Helper
I'm trying to setup Git Source Control based on this document but since I'm totally new to the Git, I'm a little be in a trouble...

1 year ago | 0 answers | 0

### 0

Question

How does this function work? - echo, assert ...
I found this solution in Cody but I have no idea what is going on. function ans = remove_from_cell_array(x,to_remove) ! echo ...

1 year ago | 1 answer | 0

### 1

Why did my mat file corrupt? How can I recover it?
I've found the cause. The problem was in the cluster side, not in the code side. My home directory on the GPU cluster was almost...

1 year ago | 1

| accepted

Question

Why did my mat file corrupt? How can I recover it?
I saved a matrix variable as a mat file on a GPU cluster (Linux, MATLAB R2019, GPU: Tesla V100) and tried to load it in my local...

1 year ago | 1 answer | 0

### 1

Question

How is the 2D filter function used in this code?
In one of the cody answers (solution 712713), I found a following code: function B = hanlelize(A) F = flip(eye(111)); ...

1 year ago | 1 answer | 0

### 1

Question

Function findobj does not find an object (?)
I have a function to make a plot of two vectors t and y, and mark the minimum value of y as a red asterisk marker. function m ...

1 year ago | 2 answers | 0

### 2

Why do I get a wrong plot?
I contacted the author of the paper. It turned out that the equation for the diffraction OTF has a typo. The correct one is ...

1 year ago | 0

| accepted

Question

Why is a regular expression used in this code?
I found a code to dump zero rows/columns in the southeast part of a given matrix: function b = ZeroDumping(a) regexp '' '(?...

1 year ago | 1 answer | 0

### 1

Question

How to use a optimization toolbox in MATLAB Cody problem?
I'm trying to solve one problem in Cody, but a function 'fmincon' is not recognized by the online compiler. Is there any way to ...

1 year ago | 1 answer | 0

### 1

Question

Why do I get a wrong plot?
I'd like to make a plot of a quantity called "PSF" but I cannot get a correct result for some reason. I will first explain the t...

1 year ago | 1 answer | 0

### 1

Question

How to fix the GPU warning?
Hello, I'm trying to use GPU libraries (especially, gpuArray) on an HPC cluster but I constatnly get an error below: --- Wa...

1 year ago | 1 answer | 0

### 1

imresize error. "Expected input method to be a string or a character vector. Allowed values are: 'cubic' or 'bicubic'."
I could solve this problem by retrieving the array from the GPU by gather function. grayImage = gather(gpu_grayImage); grayI...

1 year ago | 0

| accepted

Question

imresize error. "Expected input method to be a string or a character vector. Allowed values are: 'cubic' or 'bicubic'."
I get the error message: Expected input method to be a string or a character vector. Allowed values are: 'cubic' or 'bicubic'...

1 year ago | 3 answers | 0